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 Alessandro Ferrucci <al...@gmail.com> on 2007/07/09 05:12:38 UTC
partial word searches
Yo guys,
quick question..I have a pretty simple solr instance running.. the relevant
part of the schema is as such:
<field name="last-name" type="text" indexed="true" stored="true"/>
<field name="first-name" type="text" indexed="true" stored="true"/>
<field name="school-year" type="text" indexed="true" stored="true"/>
<field name="player-position" type="text" indexed="true" stored="true"/>
<field name="school" type="text" indexed="true" stored="true"/>
<field name="conference" type="text" indexed="true" stored="true"/>
I've got stuff indexed fine. Let's say I do a query as such:
last-name:Anderson
I get 27 records (the correct result), so far so good...
now I want to provide a looser query:
last-name:And*
Now I get 0 results back.....odd..
so I try wtithout regex:
last-name:And
0 results back...
I looked at the Lucene query syntax and from there it looks like it should
just work.... but partial word matching doesn't seem to be working.
Any clues?
Thanks all
--
alessandro ferrucci
Re: partial word searches
Posted by Yonik Seeley <yo...@apache.org>.
On 7/8/07, Alessandro Ferrucci <al...@gmail.com> wrote:
[...]
> last-name:And*
>
> Now I get 0 results back.....odd..
Since "text" probably has a lowercase filter, try last-name:and*
Wildcard queries aren't run through the query analyzer because things
like stemming wouldn't work with partial words.
-Yonik