Please do not cross-post to several lists. This question belongs here in the users-list only.
You could yse EDismax parser to achieve different boosts per field, see the "qf" parameter in https://solr.apache.org/guide/8_9/the-extended-dismax-query-parser.html If a user types "test phrase", Solr will by default require a pure phrase match. You could rewrite that query in your application to something like "test phrase" or (test phrase)^0.2 to achieve what you are after. However, users may be puzzled that they did not get the phrase they were looking for? Jan > 22. sep. 2021 kl. 14:27 skrev Thamizh Babu <[email protected]>: > > Hi, > > I am new to SOLR. We have a requirement to prioritize fields and keyword > phrases as below: > > While indexing priority as below > Title - Priority 1 > Short Desc - Priority 2 > Long Desc - Priority 3 > > If user types search phrase like “Test Phrase” > “Test Phrase” – Priority 1 > “Test” – Priority 2 > “Phrase” – Priority 3 > > Please guide us how to give priority while indexing time for above use cases. > Any help would be highly appreciated. > > Thanks, > Thamizh > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for Windows > > > > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > Virus-free. www.avast.com > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > > <x-msg://4/#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>--------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > <mailto:[email protected]> For additional commands, e-mail: > [email protected] <mailto:[email protected]>
