lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shalin Shekhar Mangar <shalinman...@gmail.com>
Subject Re: Problem with Wildcard...
Date Thu, 01 Oct 2009 07:42:44 GMT
On Tue, Sep 29, 2009 at 6:42 PM, Jörg Agatz <joerg.agatz@googlemail.com>wrote:

> Hi Users...
>
> i have a Problem....
>
> I have a lot of fields, (type=text) for search in all fields i copy all
> fields in the default text field and use this for default search.
>
> Now i will search...
>
> This is into a Field....
>
> "RI-MC500034-1"
> when i search "RI-MC500034-1" i found it...
> if i seacht "RI-MC5000*" i dosen´t
>
> when i search "500034" i found it...
> if i seacht "5000*" i dosen´t
>
> what can i do to use the Wildcards?
>

I guess one thing you need to do is to add preserveOriginal="true" in the
WordDelimiterFactory section in your field type. That would help match
things like "RI-MC5000*". Make sure you re-index all documents after this
change.

As for the others, add debugQuery=on as a request parameter and see how the
query is being parsed. If you have a doubt, paste it on the list and we can
help you.

-- 
Regards,
Shalin Shekhar Mangar.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message