You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by siping liu <si...@hotmail.com> on 2010/05/16 18:58:35 UTC

match to non tokenizable word ("helloworld")

I get no match when searching for "helloworld", even though I have "hello world" in my index. How do people usually deal with this? Write a custom analyzer, with help from a collection of all dictionary words?

 

thanks for suggestions/comments.
 		 	   		  
_________________________________________________________________
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1

Re: match to non tokenizable word ("helloworld")

Posted by Erick Erickson <er...@gmail.com>.
You might want to look at ngrams and/or shingles. In this
case I suspect that ngrams are better suited, I don't
think shingles applies with the direction you stated, but
your problem description is so short I thought I'd mention
it.

Although your collection of words can work (think synonyms) if you have a
pre-determined, probably small, list of equivalencies...

Best
Erick

On Sun, May 16, 2010 at 12:58 PM, siping liu <si...@hotmail.com> wrote:

>
> I get no match when searching for "helloworld", even though I have "hello
> world" in my index. How do people usually deal with this? Write a custom
> analyzer, with help from a collection of all dictionary words?
>
>
>
> thanks for suggestions/comments.
>
> _________________________________________________________________
> Hotmail has tools for the New Busy. Search, chat and e-mail from your
> inbox.
>
> http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1
>