lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: Wild card based filter queries
Date Sun, 22 Aug 2010 18:44:05 GMT
Well, you can't really do a *blah* without arranging your index
appropriately
(n-grams come to mind). Queries of this form are really, really expensive.

You can do leading and trailing wildcards (i.e. *blah or blah*), but even
leading wildcards require some changes to your schema...

The short answer is that you can do these things, but they won't work out
of the box, you have to arrange for them to occur.

HTH
Erick

On Fri, Aug 20, 2010 at 7:14 AM, Nemani, Raj <Raj.Nemani@turner.com> wrote:

> Hello all,
>
>
>
> I was wondering If you all can help me with the following.
>
>
>
> Is it possible to filter search queries using wild cards.  Here is what
> I am thinking..
>
>
>
> From Solr admin's full search interface I can enter the following into
> "Filter Query" text box to filter the results
>
>
>
> Ex: queue:"myqueue"
>
> Will return all the documents in the index where the field "queue" has
> the value "myqueue"
>
>
>
> Can I take the same approach but using wild card filter term such as the
> following.
>
>
>
> Ex:queue: "%my%"
>
>
>
> I am guessing the wild card syntax above to convey the point.  Is this
> possible and if it is what is the correct syntax?  In addition, does it
> work on all fields including fields such as the unique key field etc?
>
>
>
> Thanks in advance for your help
>
> Raj
>
>
>
>

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