Take the 2-minute tour ×

My documents have 5 fields, how can I config solr so that: 1)exact matches are on the top 2)indicator that there is exact match on the document additionally, is it possible to know which field the exact match happens?


share|improve this question
please include an example too –  aitchnyu Nov 30 '12 at 11:32
add comment

1 Answer

If you want to boost documents with exact higher than the analyzed ones -

  • Create one fields one without any analysis (maybe just lower case and others) to hold original value
  • Create other field with all the analysis applied (lowercase, ascii, synonyms, stemmer ...)
  • Add a boost for the Exact match field.
  • If the match is exact, the analysed field would also have a match which in case will boost the documents with exact match higher.

For the Indicator, you probably have to enable highlighting and check if the highlight it returned for the exact field match.

share|improve this answer
Thanks Jayendra. I will check out the highlighting feature. –  Henry Nov 30 '12 at 22:36
add comment

Your Answer


