lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Tomblin <ptomb...@xcski.com>
Subject Re: Wildcard seaches?
Date Thu, 20 Aug 2009 15:24:39 GMT
On Thu, Aug 20, 2009 at 10:51 AM, Andrew Clegg<andrew.clegg@gmail.com> wrote:
> Paul Tomblin wrote:
>>
>> Is there such a thing as a wildcard search?  If I have a simple
>> solr.StrField with no analyzer defined, can I query for "foo*" or
>> "foo.*" and get everything that starts with "foo" such as 'foobar" and
>> "foobaz"?
>>
>
> Yes. foo* is fine even on a simple string field.

Ah, I discovered what was going wrong - I was passing the url to
ClientUtils.escapeQueryChars, and that was escapign the *.  I have to
pass the URL without the * to escapeQueryChars, then tag the * on the
end.

Thanks.

-- 
http://www.linkedin.com/in/paultomblin

Mime
View raw message