0

I have SOLR running and I can get rsults in case of a partial word search

eg. if user searches "micro" I CAN find "microsoft"

but If I search for "microsoftx" I CANNOT get back "microsoft"

what kind of rules do i have to setup in my schema file?

PS. I have little to zero knowledge of SOLR, I literally installed yesterday.

Francesco
  • 24,839
  • 29
  • 105
  • 152
  • Full text search also resolves your question. May this link help you [http://stackoverflow.com/questions/7731423/what-solr-tokenizer-and-filters-can-i-use-for-a-strong-general-site-search] – SASIKUMAR SENTHILNATHAN Aug 06 '16 at 14:02

1 Answers1

1

You should be able to solve this by adding an EdgeNgramFilterFactory to your analysis chain for the query part. It'll generate tokens for each part of the original word, giving you a search for micro, micros, microso, microsof, microsoft, microsoftx for microsoftx, depending on how you configure it (minGramSize).

MatsLindh
  • 49,529
  • 4
  • 53
  • 84
  • This answer give me a very good explanation about what is the usage of n-gram analysis. Thank you – panoet Aug 11 '23 at 19:56