Lucene has a custom query syntax for querying its indexes. Here are some query examples demonstrating the query syntax.
event_status:New
event_status:Closed
event_status:Ignored
event_status:"In Progress"
event_status:New OR event_status:Closed OR event_status:"In Progress"
Explanation
Keyword matching
Search for word "New" in the event_status field.
event_status:New
Search for phrase "In Progress" in the event_status field.
event_status:"In Progress"
Search for phrase "In Progress" in the event_status field AND the phrase "3q432423" in the engid field.
event_status:"In Progress" AND engid:3q432423
Search for either the phrase "In Progress" in the event_status field AND the phrase "3q432423" in the engid field, or the word "New" in the event_status field.
(event_status:"In Progress" AND engid:3q432423) OR event_status:New
Search for word "new" and not "Closed" in the event_status field.
event_status:new -event_status:Closed
Comments
0 comments
Please sign in to leave a comment.