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 Ahson Iqbal <mi...@yahoo.com> on 2010/10/14 07:28:30 UTC
Question related to phrase search in lucene/solr?
hi all
I have question is it possible to perform a phrase search with wild cards in
solr/lucene as if i have two queries both have exactly same results one is
+Contents:"change market"
and other is
+Contents:"chnage* market"
but i think the second should match "chages market" as well but it does not
matches it. Any help would be appreciated
Regards
Ahsan
Re: Question related to phrase search in lucene/solr?
Posted by Chris Hostetter <ho...@fucit.org>.
: I have question is it possible to perform a phrase search with wild cards in
: solr/lucene as if i have two queries both have exactly same results one is
: +Contents:"change market"
:
: and other is
: +Contents:"chnage* market"
:
: but i think the second should match "chages market" as well but it does not
: matches it. Any help would be appreciated
In my experience, 90% of the times people ask about using wildcards in a
phrase query what they really want is simple stemming of the terms -- the
one example you've cited is an example of this. If your "Contents" field
uses an analyzer that does stemming then "change market" and "changes
market" would both match.
-Hoss
Re: Question related to phrase search in lucene/solr?
Posted by Otis Gospodnetic <ot...@yahoo.com>.
Hi,
Lots of threads on that topic here:
http://search-lucene.com/?q=phrase+query+wildcard&fc_project=Lucene
And if you click that JIRA facet you'll see this as #1
hit: https://issues.apache.org/jira/browse/LUCENE-1486
(note: that's Lucene, not Solr)
Otis----
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Lucene ecosystem search :: http://search-lucene.com/
----- Original Message ----
> From: Ahson Iqbal <mi...@yahoo.com>
> To: Solr Send Mail <so...@lucene.apache.org>
> Sent: Thu, October 14, 2010 1:28:30 AM
> Subject: Question related to phrase search in lucene/solr?
>
> hi all
> I have question is it possible to perform a phrase search with wild cards in
>
> solr/lucene as if i have two queries both have exactly same results one is
> +Contents:"change market"
>
> and other is
> +Contents:"chnage* market"
>
> but i think the second should match "chages market" as well but it does not
> matches it. Any help would be appreciated
>
> Regards
> Ahsan
>
>
>