You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2014/01/16 02:39:35 UTC
svn commit: r1558659 - in /lucene/dev/branches/branch_4x: ./ solr/
solr/core/ solr/core/src/java/org/apache/solr/spelling/suggest/fst/
solr/core/src/test-files/solr/collection1/conf/
solr/core/src/test/org/apache/solr/spelling/suggest/
Author: rmuir
Date: Thu Jan 16 01:39:35 2014
New Revision: 1558659
URL: http://svn.apache.org/r1558659
Log:
SOLR-5631: Add support for FreeTextSuggester
Added:
lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/spelling/suggest/fst/FreeTextLookupFactory.java
- copied unchanged from r1558635, lucene/dev/trunk/solr/core/src/java/org/apache/solr/spelling/suggest/fst/FreeTextLookupFactory.java
lucene/dev/branches/branch_4x/solr/core/src/test-files/solr/collection1/conf/freeTextSuggest.txt
- copied unchanged from r1558635, lucene/dev/trunk/solr/core/src/test-files/solr/collection1/conf/freeTextSuggest.txt
lucene/dev/branches/branch_4x/solr/core/src/test/org/apache/solr/spelling/suggest/TestFreeTextSuggestions.java
- copied unchanged from r1558635, lucene/dev/trunk/solr/core/src/test/org/apache/solr/spelling/suggest/TestFreeTextSuggestions.java
Modified:
lucene/dev/branches/branch_4x/ (props changed)
lucene/dev/branches/branch_4x/solr/ (props changed)
lucene/dev/branches/branch_4x/solr/CHANGES.txt
lucene/dev/branches/branch_4x/solr/core/ (props changed)
lucene/dev/branches/branch_4x/solr/core/src/test-files/solr/collection1/conf/solrconfig-phrasesuggest.xml
Modified: lucene/dev/branches/branch_4x/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/CHANGES.txt?rev=1558659&r1=1558658&r2=1558659&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/CHANGES.txt (original)
+++ lucene/dev/branches/branch_4x/solr/CHANGES.txt Thu Jan 16 01:39:35 2014
@@ -115,6 +115,9 @@ New Features
Andrzej Bialecki, Patrick Hunt, Wolfgang Hoschek, Roman Shaposhnik,
Eric Wong)
+* SOLR-5631: Add support for Lucene's FreeTextSuggester.
+ (Areek Zillur via Robert Muir)
+
Bug Fixes
----------------------
Modified: lucene/dev/branches/branch_4x/solr/core/src/test-files/solr/collection1/conf/solrconfig-phrasesuggest.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/core/src/test-files/solr/collection1/conf/solrconfig-phrasesuggest.xml?rev=1558659&r1=1558658&r2=1558659&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/core/src/test-files/solr/collection1/conf/solrconfig-phrasesuggest.xml (original)
+++ lucene/dev/branches/branch_4x/solr/core/src/test-files/solr/collection1/conf/solrconfig-phrasesuggest.xml Thu Jan 16 01:39:35 2014
@@ -102,6 +102,22 @@
</searchComponent>
+ <searchComponent class="solr.SuggestComponent" name="free_text_suggest">
+ <lst name="suggester">
+ <str name="name">free_text_suggest</str>
+ <str name="lookupImpl">FreeTextLookupFactory</str>
+ <str name="dictionaryImpl">FileDictionaryFactory</str>
+ <str name="storeDir">free_text_suggest</str>
+ <str name="buildOnCommit">false</str>
+ <str name="sourceLocation">freeTextSuggest.txt</str>
+
+ <!-- Suggester properties -->
+ <str name="separator"> </str>
+ <str name="suggestFreeTextAnalyzerFieldType">text</str>
+ <int name="ngrams">2</int>
+ </lst>
+
+ </searchComponent>
<!-- FuzzyLookup suggest component with FileDictionaryFactory -->
<searchComponent class="solr.SuggestComponent" name="fuzzy_suggest_analyzing_with_file_dict">
<lst name="suggester">
@@ -259,6 +275,17 @@
<str>fuzzy_suggest_analyzing_with_file_dict</str>
</arr>
</requestHandler>
+
+
+ <requestHandler class="org.apache.solr.handler.component.SearchHandler" name="/free_text_suggest">
+ <lst name="defaults">
+ <str name="suggest">true</str>
+ </lst>
+ <arr name="components">
+ <str>free_text_suggest</str>
+ </arr>
+ </requestHandler>
+
<requestHandler class="org.apache.solr.handler.component.SearchHandler" name="/fuzzy_suggest_analyzing_with_high_freq_dict">
<lst name="defaults">