Solr lucene search only first word in a sentence - need query -


i searching data matches sentence starts search key.

ex:

search key "what" 

result : desired one

**what** name **what** doing **what**  etc. 

how getting is

is **what** want  text before **what**   etc. 

i using edgengram well..but giving me second one. appreciated....

i think you're using whitespacetokenizer. should try using keywordtokenizer edgengram left end.

if you're trying implement auto suggest, have @ suggester component.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -