简体   繁体   中英

Solr Term Proximity function for the solrconfig.xml

I need to use the Solr Term Proximity for all my queries .

Example: I enter the query pc 18 . What I want now is Solr to search for pc OR 18 OR "pc 18"~10^10 .

Is there a way to define the Term Proximity in the solrconfig.xml to make the server "convert" all my queries?

The (e)dismax handler supports setting static proximity values through phrase slop and phrase fields:

q=batman movie&pf=text&ps=100

You can set these values as static values in your solrconfig.xml for the requestHandler, or you can just include them in the query URL outside of the actual query.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM