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 Erik Holstad <er...@gmail.com> on 2008/11/07 20:21:34 UTC
Getting an AND query when using Solrj.
Hi!
When making a query using the web interface the we get the expected
OR function. But when using the java client it look like it is treating the
query as an AND query.
Is there way to see what operator is used for the query using Solrj?
Regards Erik
Re: Getting an AND query when using Solrj.
Posted by Erik Holstad <er...@gmail.com>.
Hi!
Sorry that I was unclear, when I wrote that it works in the web interface I
also
meant to say that it is set in the schema.xml file and therefore working
there.
Sorry about that
Regards Erik
On Fri, Nov 7, 2008 at 11:33 AM, Jorge Solari <js...@gmail.com> wrote:
> setting in schema.xml
>
> <solrQueryParser defaultOperator="AND"/>
>
> On Fri, Nov 7, 2008 at 5:21 PM, Erik Holstad <er...@gmail.com>
> wrote:
>
> > Hi!
> > When making a query using the web interface the we get the expected
> > OR function. But when using the java client it look like it is treating
> the
> > query as an AND query.
> >
> > Is there way to see what operator is used for the query using Solrj?
> >
> >
> > Regards Erik
> >
>
Re: Getting an AND query when using Solrj.
Posted by Jorge Solari <js...@gmail.com>.
setting in schema.xml
<solrQueryParser defaultOperator="AND"/>
On Fri, Nov 7, 2008 at 5:21 PM, Erik Holstad <er...@gmail.com> wrote:
> Hi!
> When making a query using the web interface the we get the expected
> OR function. But when using the java client it look like it is treating the
> query as an AND query.
>
> Is there way to see what operator is used for the query using Solrj?
>
>
> Regards Erik
>