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: Searching for term sequence including blank character using regex
Date Tue, 03 May 2016 14:01:52 GMT
Not quite sure. How is the field type defined? What
is the result of adding &debug=true to the query? Have
you looked at the actual terms indexed via the
admin UI/schema browser? Have you looked at the
admin/analysis page to see how the data is parsed by
the fieldType?

If this is a tokenized field you should be fine
with fq=content:"hello world", possibly with slop.

And I'm all confused. The mail came through with
what looks like regex expressions (slash period asterisk
hello world period asterisk slash).
But that's often an artifact of markup for bolding
which gets stripped by some e-mail programs. You've
been around long enough that I highly doubt you're trying
to do regex queries!

Best,
Erick

On Sun, May 1, 2016 at 6:57 AM, Ali Nazemian <alinazemian@gmail.com> wrote:
> Dear Solr Users/Developers,
> Hi,
>
> I was wondering what is the correct query syntax for searching sequence of
> terms with blank character in the middle of sequence. Suppose I am looking
> for a query syntax with using fq parameter. For example suppose I want to
> search for all documents having "hello world" sequence using fq parameter.
> I am not sure why using fq=content:/.*hello world.*/ did not works for
> tokenized field in this situation. However, fq=content:/.*hello.*/ did work
> for the same field. Is there any possible fq query syntax for such
> searching requirement?
>
> Best regards.
>
>
> --
> A.Nazemian

Mime
View raw message