lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Aristov <alexander.aris...@gmail.com>
Subject Re: default operation for a field
Date Mon, 02 Apr 2012 12:45:32 GMT
Ok. got it. thanks

Best Regards
Alexander Aristov


On 2 April 2012 16:37, Erick Erickson <erickerickson@gmail.com> wrote:

> You can't set the default operator for a single field. This implies
> you're using edismax? If that's the case, your app layer can
> massage the query to something like
> term1 term2 term3 field_x:(term1 AND term2 AND term3). In which
> case field_x probably should not be in your qf parameter.
>
> Best
> Erick
>
> On Mon, Apr 2, 2012 at 2:05 AM, Alexander Aristov
> <alexander.aristov@gmail.com> wrote:
> > Hi,
> >
> > Just curious if it's possible to set default operator for a field, not
> for
> > all application. I have a field and I want it always had AND operation.
> Is
> > it feasible?
> >
> > Users don't enter any opeartors for this field. Only one term or several
> > separated by empty spaces. But if default operation is set to OR then the
> > field doesn't work as I expect. I need only AND. Maybe another solution
> is
> > possible?
> >
> > Best Regards
> > Alexander Aristov
>

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