Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我计划在 SOLR 中使用 eDismax 查询解析器来增强在其字段中存在短语的文档。现在在 edismax 解析器查询中有一个 mm 参数,因为用户键入的查询可以是任何长度(即 >=1)我想将 mm 值设置为 1 。关于这个参数,我有以下问题。
从 Solr4.0 开始,mm 的默认值由 q.op 参数决定(q.op=AND => mm=100%;q.op=OR => mm=0%)。请记住,默认运算符受您的 schema.xml 条目的影响。在旧版本的 Solr 中,“mm”的默认值为 100%(所有子句必须匹配)。
因此,如果您将 AND 作为默认运算符,则默认情况下 mm 将等于子句数。