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 Ashish P <as...@gmail.com> on 2009/04/03 10:02:55 UTC
filter query question
Consider, I have following 3 fields
<field name="name" type="text" indexed="true" stored="true"
multiValued="false"/>
<field name="actionuser" type="text" indexed="true" stored="true"
multiValued="false"/>
<field name="creationuser" type="text" indexed="true" stored="true"
multiValued="false"/>
I want to query all documents where name:somevalue and actionuser value is
not equal to creationuser value.
Can we do this???
--
View this message in context: http://www.nabble.com/filter-query-question-tp22863789p22863789.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: filter query question
Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
On Fri, Apr 3, 2009 at 2:04 PM, Ashish P <as...@gmail.com> wrote:
>
> Another question what is the meaning of this syntax
> [* TO *]
>
>
It means match all tokens from the beginning to the end.
--
Regards,
Shalin Shekhar Mangar.
Re: filter query question
Posted by Ashish P <as...@gmail.com>.
Thanks Shalin.
Another question what is the meaning of this syntax
[* TO *]
Thanks,
Ashish
Shalin Shekhar Mangar wrote:
>
> On Fri, Apr 3, 2009 at 1:32 PM, Ashish P <as...@gmail.com> wrote:
>
>>
>> I want to query all documents where name:somevalue and actionuser value
>> is
>> not equal to creationuser value.
>>
>> Can we do this???
>
>
> Nope. But you can create a new field which holds true if actionuser !=
> creationuser and filter on that.
>
> --
> Regards,
> Shalin Shekhar Mangar.
>
>
--
View this message in context: http://www.nabble.com/filter-query-question-tp22863789p22864255.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: filter query question
Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
On Fri, Apr 3, 2009 at 1:32 PM, Ashish P <as...@gmail.com> wrote:
>
> I want to query all documents where name:somevalue and actionuser value is
> not equal to creationuser value.
>
> Can we do this???
Nope. But you can create a new field which holds true if actionuser !=
creationuser and filter on that.
--
Regards,
Shalin Shekhar Mangar.