Hessel Jespers
Hessel Jespers

Reputation: 73

solr : search query with spaces between words

I have have a latin plant name like Chamaecyparis obtusa So the result should be all plantnames that starts with Chamaecyparis obtusa

I want to get results like

Chamaecyparis obtusa 'Confucious'
Chamaecyparis obtusa 'Contorta'
Chamaecyparis obtusa 'Coralliformis'
Chamaecyparis obtusa 'Crippsii'

The problem is the space between the words Chamaecyparis and obtusa For that reson it will not work

I tried it with * and ? but there must be a simple way to do this

Upvotes: 7

Views: 18784

Answers (1)

ZZ-bb
ZZ-bb

Reputation: 2167

Couple things worth trying from here: solr query with white space

  • remove all white space: Chamaecyparisobtusa
  • use quotes: "Chamaecyparis obtusa"
  • use parenthesis: (Chamaecyparis obtusa)

Additional tips may be found here (check the links also): Solr Query Syntax

Upvotes: 18

Related Questions