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 Celso Pinto <cp...@yimports.com> on 2011/06/30 20:21:40 UTC

Wildcard search not working if full word is queried

Hi everyone,

I'm having some trouble figuring out why a query with an exact word
followed by the * wildcard, eg. teste*, returns no results while a
query for test* returns results that have the word "teste" in them.

I've created a couple of pasties:

Exact word with wildcard : http://pastebin.com/n9SMNsH0
Similar word: http://pastebin.com/jQ56Ww6b

Parameters other than title, description and content have no effect
other than filtering out unwanted results. In a two of the four
results, the title has the complete word "teste". On the other two,
the word appears in the other fields.

Does anyone have any insights about what I'm doing wrong?

Thanks in advance.

Regards,
Celso

Re: Wildcard search not working if full word is queried

Posted by François Schiettecatte <fs...@gmail.com>.
Celso

You are very welcome and yes I should have mentioned that wildcard searches are not analyzed (which is a recurring theme). This also means that they are not downcased, so the search TEST* will probably not find anything either in  your set up.

Cheers

François

On Jul 1, 2011, at 5:16 AM, Celso Pinto wrote:

> Hi again,
> 
> read (past tense) TFM :-) and:
> 
> "On wildcard and fuzzy searches, no text analysis is performed on the
> search word."
> 
> Thanks a lot François!
> 
> Regards,
> Celso
> 
> On Fri, Jul 1, 2011 at 10:02 AM, Celso Pinto <cp...@yimports.com> wrote:
>> Hi François,
>> 
>> it is indeed being stemmed, thanks a lot for the heads up. It appears
>> that stemming is also configured for the query so it should work just
>> the same, no?
>> 
>> Thanks again.
>> 
>> Regards,
>> Celso
>> 
>> 
>> 2011/6/30 François Schiettecatte <fs...@gmail.com>:
>>> I would run that word through the analyzer, I suspect that the word 'teste' is being stemmed to 'test' in the index, at least that is the first place I would check.
>>> 
>>> François
>>> 
>>> On Jun 30, 2011, at 2:21 PM, Celso Pinto wrote:
>>> 
>>>> Hi everyone,
>>>> 
>>>> I'm having some trouble figuring out why a query with an exact word
>>>> followed by the * wildcard, eg. teste*, returns no results while a
>>>> query for test* returns results that have the word "teste" in them.
>>>> 
>>>> I've created a couple of pasties:
>>>> 
>>>> Exact word with wildcard : http://pastebin.com/n9SMNsH0
>>>> Similar word: http://pastebin.com/jQ56Ww6b
>>>> 
>>>> Parameters other than title, description and content have no effect
>>>> other than filtering out unwanted results. In a two of the four
>>>> results, the title has the complete word "teste". On the other two,
>>>> the word appears in the other fields.
>>>> 
>>>> Does anyone have any insights about what I'm doing wrong?
>>>> 
>>>> Thanks in advance.
>>>> 
>>>> Regards,
>>>> Celso
>>> 
>>> 
>> 


Re: Wildcard search not working if full word is queried

Posted by Celso Pinto <cp...@yimports.com>.
Hi again,

read (past tense) TFM :-) and:

"On wildcard and fuzzy searches, no text analysis is performed on the
search word."

Thanks a lot François!

Regards,
Celso

On Fri, Jul 1, 2011 at 10:02 AM, Celso Pinto <cp...@yimports.com> wrote:
> Hi François,
>
> it is indeed being stemmed, thanks a lot for the heads up. It appears
> that stemming is also configured for the query so it should work just
> the same, no?
>
> Thanks again.
>
> Regards,
> Celso
>
>
> 2011/6/30 François Schiettecatte <fs...@gmail.com>:
>> I would run that word through the analyzer, I suspect that the word 'teste' is being stemmed to 'test' in the index, at least that is the first place I would check.
>>
>> François
>>
>> On Jun 30, 2011, at 2:21 PM, Celso Pinto wrote:
>>
>>> Hi everyone,
>>>
>>> I'm having some trouble figuring out why a query with an exact word
>>> followed by the * wildcard, eg. teste*, returns no results while a
>>> query for test* returns results that have the word "teste" in them.
>>>
>>> I've created a couple of pasties:
>>>
>>> Exact word with wildcard : http://pastebin.com/n9SMNsH0
>>> Similar word: http://pastebin.com/jQ56Ww6b
>>>
>>> Parameters other than title, description and content have no effect
>>> other than filtering out unwanted results. In a two of the four
>>> results, the title has the complete word "teste". On the other two,
>>> the word appears in the other fields.
>>>
>>> Does anyone have any insights about what I'm doing wrong?
>>>
>>> Thanks in advance.
>>>
>>> Regards,
>>> Celso
>>
>>
>

Re: Wildcard search not working if full word is queried

Posted by Celso Pinto <cp...@yimports.com>.
Hi François,

it is indeed being stemmed, thanks a lot for the heads up. It appears
that stemming is also configured for the query so it should work just
the same, no?

Thanks again.

Regards,
Celso


2011/6/30 François Schiettecatte <fs...@gmail.com>:
> I would run that word through the analyzer, I suspect that the word 'teste' is being stemmed to 'test' in the index, at least that is the first place I would check.
>
> François
>
> On Jun 30, 2011, at 2:21 PM, Celso Pinto wrote:
>
>> Hi everyone,
>>
>> I'm having some trouble figuring out why a query with an exact word
>> followed by the * wildcard, eg. teste*, returns no results while a
>> query for test* returns results that have the word "teste" in them.
>>
>> I've created a couple of pasties:
>>
>> Exact word with wildcard : http://pastebin.com/n9SMNsH0
>> Similar word: http://pastebin.com/jQ56Ww6b
>>
>> Parameters other than title, description and content have no effect
>> other than filtering out unwanted results. In a two of the four
>> results, the title has the complete word "teste". On the other two,
>> the word appears in the other fields.
>>
>> Does anyone have any insights about what I'm doing wrong?
>>
>> Thanks in advance.
>>
>> Regards,
>> Celso
>
>

Re: Wildcard search not working if full word is queried

Posted by François Schiettecatte <fs...@gmail.com>.
I would run that word through the analyzer, I suspect that the word 'teste' is being stemmed to 'test' in the index, at least that is the first place I would check.

François

On Jun 30, 2011, at 2:21 PM, Celso Pinto wrote:

> Hi everyone,
> 
> I'm having some trouble figuring out why a query with an exact word
> followed by the * wildcard, eg. teste*, returns no results while a
> query for test* returns results that have the word "teste" in them.
> 
> I've created a couple of pasties:
> 
> Exact word with wildcard : http://pastebin.com/n9SMNsH0
> Similar word: http://pastebin.com/jQ56Ww6b
> 
> Parameters other than title, description and content have no effect
> other than filtering out unwanted results. In a two of the four
> results, the title has the complete word "teste". On the other two,
> the word appears in the other fields.
> 
> Does anyone have any insights about what I'm doing wrong?
> 
> Thanks in advance.
> 
> Regards,
> Celso