search problem

View: New views
4 Messages — Rating Filter:   Alert me  

search problem

by m.harig :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hello all

     i've a doubt in search , i've a word in my index welcomelucene (without spaces) , when i search for welcome lucene(with a space) , am not able to get the hits. It should pick the document welcomelucene.. is there anyway to do it ? i've used wildcard option too. but no results , please anyone help me..

Re: search problem

by Erick Erickson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Why would you expect to get a hit on your document? There are
three distinct tokens here:
welcomlucene
welcome
lucene

Lucene searches for *matching* tokens, so searching
for the tokens 'welcome' and 'lucene' essentially asks
"are there two tokens in the document that exactly match
these?" and the answer is "no", so no hits (assuming
AND here, the OR argument is similar).


As for the wlidcard question, we'd need to see the code
to be able to help there....

You might go up on the Wiki and review tokenization to
understand this issue better.

Best
Erick



On Thu, Oct 29, 2009 at 7:12 AM, m.harig <m.harig@...> wrote:

>
> hello all
>
>     i've a doubt in search , i've a word in my index welcomelucene (without
> spaces) , when i search for welcome lucene(with a space) , am not able to
> get the hits. It should pick the document welcomelucene.. is there anyway
> to
> do it ? i've used wildcard option too. but no results , please anyone help
> me..
> --
> View this message in context:
> http://www.nabble.com/search-problem-tp26111084p26111084.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@...
> For additional commands, e-mail: java-user-help@...
>
>

Re: search problem

by Karl Wettin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


29 okt 2009 kl. 12.12 skrev m.harig:

>
>     i've a doubt in search , i've a word in my index welcomelucene  
> (without
> spaces) , when i search for welcome lucene(with a space) , am not  
> able to
> get the hits. It should pick the document welcomelucene.. is there  
> anyway to
> do it ? i've used wildcard option too. but no results , please  
> anyone help
> me..

Using a bigram shingle filter with no spacer characters at query time  
should match the document, but as Erick says you might want consider  
and tell us why you want to do this.


           karl

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@...
For additional commands, e-mail: java-user-help@...


Re: search problem

by m.harig :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Erick ,

   i understand the issue , but my doubt is when you search for a keyword which is originally a single word, for example , metacity is really single keyword . when i search for meta city am not able to get the results , this is what my doubt ,

 if you goto google and search for meta city , it'll give you the results for metacity , how do i solve this issue ? is there any concepts behind indexing ?? please anyone let me know