7

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

Hessel Jespers
  • 73
  • 1
  • 1
  • 3

1 Answers1

18

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

Community
  • 1
  • 1
ZZ-bb
  • 2,157
  • 1
  • 24
  • 33
  • 2
    Above answer is correct. A small addition - (word1 word2) does not preserve the order of occurance of words in documents, whereas "word1 word2" returns documents that have words in the same order. – Ranjith Sep 23 '14 at 08:15
  • I was already added quotes but its not search my text is like XXXXX XXXXX XXXX XXXXX XXXX XXXXXX – Mayank Vadiya Mar 23 '16 at 12:01