And I should have added that the advantage of the word break approach is that it automatically handles both splitting and combining words, all based on the index, with no need to mess with creating synonyms.

Also, there is a dictionary-based filter called DictionaryCompoundWordTokenFilterFactory which can split combined terms, but you do have to put at least explicitly some of the word parts in a dictionary file. Again, there are examples in my e-book.

It would be nice to have a dynamic, index-based filter at query time to automatically (but optionally) do the expansion/compression.

-- Jack Krupansky

-----Original Message----- From: Sven Schönfeldt
Sent: Thursday, July 24, 2014 8:35 AM
To: solr-user@lucene.apache.org
Subject: Re: Need a tipp, how to find documents where content is "tel aviv" but user query is "telaviv"?

Thanks!

Thats my core problem, to let solr search a bit like GSA :-)


Greetz

Am 24.07.2014 um 14:27 schrieb Jack Krupansky <j...@basetechnology.com>:

Google handles this type of word concatenation quite well... but Solr does not out of the box, at least in terms of automatically. Solr does have a word break spell checker:

https://cwiki.apache.org/confluence/display/solr/Spell+Checking

And described in more detail, with examples in my e-book:
http://www.lulu.com/us/en/shop/jack-krupansky/solr-4x-deep-dive-early-access-release-7/ebook/product-21203548.html

You could at least use this feature to implement a "did you mean..." UI for your search app - show the user actual results but also a proposed query with the words broken apart.

-- Jack Krupansky

-----Original Message----- From: Sven Schönfeldt
Sent: Thursday, July 24, 2014 4:07 AM
To: solr-user@lucene.apache.org
Subject: Need a tipp, how to find documents where content is "tel aviv" but user query is "telaviv"?

Hi Solr-Users,

what is the best way to find documents, where the user write a wrong word in query.

For example the user search for „telaviv“. the search result should also include documents where content is „tel aviv“.

any tipp, or keywords how to do that kind of queries?

regards, Sven=

Reply via email to