Otis Gospodnetic wrote:
I'm not sure if that can be easily done (other than going char by char and 
testing), because nothing indicates where the space might be, not even an upper 
case there.  I'd be curious to know if you find a better solution.

Otis
--
Sematext is hiring -- http://sematext.com/about/jobs.html?mls
Lucene, Solr, Nutch, Katta, Hadoop, HBase, UIMA, NLP, NER, IR



----- Original Message ----
From: Andrey Klochkov <akloch...@griddynamics.com>
To: solr-user <solr-user@lucene.apache.org>
Sent: Fri, November 27, 2009 6:09:08 AM
Subject: restore space between words by spell checker

Hi

If a user issued a misspelled query, forgetting to place space between
words, is it possible to fix it with a spell checker or by some other
mechanism?

For example, if we get query "tommyhitfiger" and have terms "tommy" and
"hitfiger" in the index, how to fix the query?

The usual approach to solving this is to index compound words, i.e. when producing a spellchecker dictionary add a record "tommyhitfiger" with a field that points to "tommy hitfiger". Details vary depending on what spellchecking impl. you use.



--
Best regards,
Andrzej Bialecki     <><
 ___. ___ ___ ___ _ _   __________________________________
[__ || __|__/|__||\/|  Information Retrieval, Semantic Web
___|||__||  \|  ||  |  Embedded Unix, System Integration
http://www.sigram.com  Contact: info at sigram dot com

Reply via email to