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 "b.riezler@pixel-ink.de" <b....@pixel-ink.de> on 2013/01/31 09:50:50 UTC

searching for an id

Hi

I have an id wich is a string like this.
tx-20130130-4599

i'm using a field without processing, wich i got confirmed via the analyser tool
But when i search for that it got split up, so instead of finding that specific entry with that unique id,
it finds all entries with "tx" in it.

Any idea how to get rid of that behavior?

Best
Ben


Re: searching for an id

Posted by Chandan Tamrakar <ch...@nepasoft.com>.
which analyzer are you  using to index that field ,  you can verify that
from schema file .

thanks


On Thu, Jan 31, 2013 at 2:35 PM, b.riezler@pixel-ink.de <
b.riezler@pixel-ink.de> wrote:

> Hi
>
> I have an id wich is a string like this.
> tx-20130130-4599
>
> i'm using a field without processing, wich i got confirmed via the
> analyser tool
> But when i search for that it got split up, so instead of finding that
> specific entry with that unique id,
> it finds all entries with "tx" in it.
>
> Any idea how to get rid of that behavior?
>
> Best
> Ben
>
>


-- 
Chandan Tamrakar
*
*

Re: searching for an id

Posted by Alexandre Rafalovitch <ar...@gmail.com>.
Are you using eDismax? Maybe your ID field is not part of the search fields
or not a high priority. And, just maybe, you are doing a copyField * to
text and the text splits the ID into parts. Enable the debug on your query
and you should be able to figure it out.

Regards,
   Alex.

Personal blog: http://blog.outerthoughts.com/
LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
- Time is the quality of nature that keeps events from happening all at
once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD book)


On Thu, Jan 31, 2013 at 3:50 AM, b.riezler@pixel-ink.de <
b.riezler@pixel-ink.de> wrote:

> Hi
>
> I have an id wich is a string like this.
> tx-20130130-4599
>
> i'm using a field without processing, wich i got confirmed via the
> analyser tool
> But when i search for that it got split up, so instead of finding that
> specific entry with that unique id,
> it finds all entries with "tx" in it.
>
> Any idea how to get rid of that behavior?
>
> Best
> Ben
>
>