lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky" <>
Subject Re: requestHandler ignoring synonyms
Date Mon, 04 Mar 2013 20:05:26 GMT
You can simply test whether synonyms are being ignored or how they are being 
processed by using the Solr Admin UI Analysis page. Select the field and 
enter the text to test. It will show you exactly what the synonym filter 

Make sure the synonym file is exactly as specified in the token filter.

If there are still problems, show us the field name, field type with 
analyzer, and the query response with &debugQuery=true. The parsed query 
string should have query-time synonyms expanded.

-- Jack Krupansky

-----Original Message----- 
From: Carlos Alexandro Becker
Sent: Monday, March 04, 2013 2:16 PM
To: solr-user
Subject: requestHandler ignoring synonyms

I have a request handler like this:

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

    <lst name="defaults">
      <!-- See -->
      <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
      <!-- Phrase Field - frases fields used on quer as phrase >> "" -->
      <str name="pf">
        DocumentDisplayName^10 DocumentName^9
        DocumentContent^5 DocumentDescription^3 DocumentTAGS^8
      <!-- See -->
      <str name="mm">
        2&lt;-1 5&lt;-2 6&lt;90%
      <!-- Phrase whitespace ignore -->
      <int name="ps">10</int>

but the synonyms and stopwords are ignored. If I use the default /select
query it works just as expected.

What can be wrong?

*Carlos Alexandro Becker* 

View raw message