Thanks, Yonik.

Just curious, does the default operator  ( "AND" or "OR") specify the
relationship between a field/value component or between the tokens of the
same field/value componenet?

e.g. for a query like this:

field1:abc  field2:xyz

does the operator   connect field1:abc and field2:xyz , or it connects  the
tokens from "abc" and "xyz" for their respective field?


thanks,

-Hui




On 11/4/07, Yonik Seeley <[EMAIL PROTECTED]> wrote:
>
> On 11/4/07, Yu-Hui Jin <[EMAIL PROTECTED]> wrote:
> > Let's say we defined a customer filed type that when querying and
> indexing,
> > the solr.LowerCaseFilterFactory is used as the last filter to low-case
> all
> > letters.  In the Analysis UI, we found tokenization is working
> correctly.
> >
> > We also defined  a custom request handler which always creates a boolean
> > query that ANDs all tokens for fielded queries (we overrided the
> > "getFieldQuery" method only).
>
> First, if all you are doing is ANDing all the tokens, you can just
> change the default operator to "AND" (q.op="AND").
>
> Analysis is done during query parsing by the query parser... if you
> create your own queries, you need to do that analysis yourself.
>
> -Yonik
>



-- 
Regards,

-Hui

Reply via email to