【问题标题】:RequestHandler with edismax ignore Synonyms and Stopwords带有 edismax 的 RequestHandler 忽略同义词和停用词
【发布时间】:2013-02-18 23:35:27
【问题描述】:

我在solrconfig.xml 中定义了以下查询:

  <requestHandler name="/defaultSearch" class="solr.SearchHandler">
    <!-- Adds filters to all queries-->
    <lst name="appends">
      <str name="fq">-DELETED:true</str>
    </lst>

    <lst name="defaults">
      <!-- See http://wiki.apache.org/solr/DisMaxQParserPlugin -->
      <str name="defType">edismax</str>
      <str name="echoParams">explicit</str>
      <str name="df">text</str>
      <!-- As dismax is used, 0.00 = is pure dismax , 1.00 = sum -->
      <float name="tie">1.00</float>
      <!-- Query Fields - Search fileds with its height -->
      <str name="qf">
        DocumentDisplayName^10 DocumentName^9
        DocumentContent^5 DocumentDescription^3 DocumentTAGS^8
      </str>
      <!-- Phrase Field - frases fields used on quer as phrase >> "" -->
      <str name="pf">
        DocumentDisplayName^10 DocumentName^9
        DocumentContent^5 DocumentDescription^3 DocumentTAGS^8
      </str>
      <!-- See http://wiki.apache.org/solr/DisMaxQParserPlugin -->
      <str name="mm">
        2&lt;-1 5&lt;-2 6&lt;90%
      </str>
      <!-- Phrase whitespace ignore -->
      <int name="ps">10</int>
    </lst>
  </requestHandler>

它工作得很好,但是,它只是忽略了我的停用词和同义词文件。

我不明白发生了什么,也不知道如何解决它。 有什么帮助吗?


编辑

Query used, result (with debug=true) and the interesting part of schema.xml

【问题讨论】:

  • 您的架构配置如何?你发出什么查询?给我们更多的例子。
  • 我已经更新了问题。感谢您的帮助,抱歉信息不足。

标签: search solr solrcloud


【解决方案1】:

现在不使用通配符进行查询“解决”问题。

谢谢。

【讨论】:

    猜你喜欢
    • 2015-09-04
    • 2023-03-17
    • 2015-07-20
    • 2016-11-26
    • 2011-03-11
    • 1970-01-01
    • 1970-01-01
    • 2011-04-07
    • 2014-11-30
    相关资源
    最近更新 更多