Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
I have a lucene query that looks like this
(title:art bodyText:art tagSearchable:art) AND (typeSearchable:information OR typeSearchable:news)
So basically I want to match anything that has e.g. art in the text / tags but is also an information or news type, for example.
Is this possible?
Valerie,
You can do 2 grouped ors with and AND in between
query.GroupedOr().And.GroupedOr()
Something along those lines have a look at the docs for exact syntax you have to pass in list of fields and second parameter is the list of values.
Regards
Ismial
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Examine API - Nested Or?
Hello,
I have a lucene query that looks like this
(title:art bodyText:art tagSearchable:art) AND (typeSearchable:information OR typeSearchable:news)
So basically I want to match anything that has e.g. art in the text / tags but is also an information or news type, for example.
Is this possible?
Valerie,
You can do 2 grouped ors with and AND in between
query.GroupedOr().And.GroupedOr()
Something along those lines have a look at the docs for exact syntax you have to pass in list of fields and second parameter is the list of values.
Regards
Ismial
is working on a reply...