简体   繁体   English

solrconfig.xml的Solr Term邻近功能

[英]Solr Term Proximity function for the solrconfig.xml

I need to use the Solr Term Proximity for all my queries . 我需要对所有查询使用Solr Term Proximity

Example: I enter the query pc 18 . 示例:输入查询pc 18 What I want now is Solr to search for pc OR 18 OR "pc 18"~10^10 . 我现在想要的是Solr搜索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? 有没有一种方法可以在solrconfig.xml定义术语邻近性,以使服务器“转换”我的所有查询?

The (e)dismax handler supports setting static proximity values through phrase slop and phrase fields: (e)dismax处理程序支持通过词组倾斜和词组字段设置静态接近值:

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. 您可以将这些值设置为requestHandler的solrconfig.xml中的静态值,也可以将它们包括在实际查询之外的查询URL中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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