[TYPO3-Solr] Suggest with synynoms ?

Georg Kuehnberger georg at georg.org
Mon Dec 6 20:40:37 CET 2010


On 06.12.2010 18:32, Olivier Dobberkau wrote:
> Am 06.12.10 17:24, schrieb Georg Kuehnberger:
>> "solution" in that, the result-behaviour is the same in search&  suggest ?

> can you show us your conf?
> olivier

sure;
please find below the testcase and config- and some additional 
debug-information.

As far as we understood, the problem boils down to solr's different 
handling of &facet.prefix=Rack (suggest) vs. &q=Rack (search).

Thanks upfront,
regards Georg


TestCase:
------------
- http://t3demo.plan2.net/index.php?id=72&no_cache=1
- Type in "Rack"

Result:
- Suggest delivers no results.
- Search (Hit enter) and you will find a page with the matching synonym: 
"Datenschrank"


synonyms.txt contains the line:
----
Schrank, Netzwerkschrank, Datenschrank, Rack, Kasten, Verteiler, Sternpunkt


Solr-Query for Suggest
----
INFO: [] webapp=/solr path=/select 
params={facet=on&facet.mincount=1&facet.limit=10&json.nl=map&wt=json&rows=0&version=1.2&omitHeader=true&fl=spell&start=0&q=&facet.prefix=Rack&facet.field=spell&fq={!typo3access}-1,0&fq=siteHash:"6157af01798db70e91a4aaf4d51176e1"&fq=language:0} 
hits=14 status=0 QTime=3

Solr-Query for Search
----
INFO: [] webapp=/solr path=/select 
params={hl.fragsize=200&spellcheck=true&facet=true&facet.mincount=1&qf=content^40.0+title^5.0+keywords^2.0+tagsH1^5.0+tagsH2H3^3.0+tagsH4H5H6^2.0+tagsInline&hl.simple.pre=<span+class%3D"results-highlight">&json.nl=map&spellcheck.collate=true&wt=json&hl=true&rows=10&version=1.2&echoParams=all&debugQuery=true&fl=*,score&facet.sort=count&start=0&q=Rack&hl.simple.post=</span>&facet.field=type&facet.field=sortAuthor&facet.field=language&fq={!typo3access}-1,0&fq=siteHash:"6157af01798db70e91a4aaf4d51176e1"&fq=language:0} 
hits=1 status=0 QTime=14


EXT solr - TS-Setup suggest is defaulting to:
--------------------
  suggest = 1
   suggest {
     loadJQuery = 1
     numberOfSuggestions = 10
     suggestField = spell
     forceHttps = 0
     stylesheet = 
EXT:solr/resources/css/jquery-ui/jquery-ui-1.8.2.custom.css
     javaScriptFiles {
       library  = EXT:solr/resources/javascript/jquery-1.4.2.min.js
       ui = EXT:solr/resources/javascript/jquery-ui-1.8.2.custom.min.js
       suggest  = EXT:solr/resources/javascript/eid_suggest/suggest.js
     }
   }


Config-Files see:
----
http://t3demo.plan2.net/fileadmin/20101206solrconfig/synonyms.txt
http://t3demo.plan2.net/fileadmin/20101206solrconfig/schema.xml
http://t3demo.plan2.net/fileadmin/20101206solrconfig/solrconfig.xml



More information about the TYPO3-project-solr mailing list