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?
> 
> -- 
> Andrew Klochkov
> Senior Software Engineer,
> Grid Dynamics

Reply via email to