lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "Suggester" by RobertMuir
Date Mon, 20 Feb 2012 16:11:59 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "Suggester" page has been changed by RobertMuir:
http://wiki.apache.org/solr/Suggester?action=diff&rev1=11&rev2=12

Comment:
link test/example from SOLR-3143

  
  {{{
    <!--
-   The SpellingQueryConverter to convert raw (CommonParams.Q) queries into tokens.  Uses
a simple regular expression
+    The SpellingQueryConverter to convert raw (CommonParams.Q) queries into tokens.  Define
a simple regular expression
-    to strip off field markup, boosts, ranges, etc. but it is not guaranteed to match an
exact parse from the query parser.
+    in your QueryAnalyzer chain if you want to strip off field markup, boosts, ranges, etc.
     -->
-   <queryConverter name="queryConverter" class="org.apache.solr.spelling.MySpellingQueryConverter"/>
+   <queryConverter name="queryConverter" class="org.apache.solr.spelling.SuggestQueryConverter"/>
  }}}
  
+ An example for setting up a typical case of auto-suggesting phrases (e.g. previous queries
from query logs with associated score) is here:
+  * [[http://svn.apache.org/repos/asf/lucene/dev/branches/branch_3x/solr/core/src/test-files/solr/conf/solrconfig-phrasesuggest.xml|solrconfig.xml]]:
Example WFST config that uses the SuggestQueryConverter with the phrase_suggest fieldtype.

+  * [[http://svn.apache.org/repos/asf/lucene/dev/branches/branch_3x/solr/core/src/test-files/solr/conf/schema-phrasesuggest.xml|schema.xml]]:
Example phrase_suggest fieldtype that lowercases, collapses runs of whitespace, tries to remove
query syntax, etc
+  * [[http://svn.apache.org/repos/asf/lucene/dev/branches/branch_3x/solr/core/src/test-files/solr/conf/phrasesuggest.txt|example
phrase dictionary with weights]]: Tab-separated example list of phrases and weights.
+ 

Mime
View raw message