Examine Search Criteria - Less than / Greater than
Hi,
I am currently developing a search for a list of campaigns on a website i am working on. I have managed to build the search so far using the default examine external index but i have come across an issue.
This works fine with the GroupedOr up to this point. However, i have a "date of event" field on the search / filter. Each campaign has a start and end date but how can i add in to my query to check to see if the "Date of Event" the user selects, checks is in between the campaign properties (start date & end date).
I have tried the .Range(date, lowerValue, HighValue) but it doesn't seem to pick up the custom umbraco properties.
Examine Search Criteria - Less than / Greater than
Hi,
I am currently developing a search for a list of campaigns on a website i am working on. I have managed to build the search so far using the default examine external index but i have come across an issue.
This works fine with the GroupedOr up to this point. However, i have a "date of event" field on the search / filter. Each campaign has a start and end date but how can i add in to my query to check to see if the "Date of Event" the user selects, checks is in between the campaign properties (start date & end date).
I have tried the .Range(date, lowerValue, HighValue) but it doesn't seem to pick up the custom umbraco properties.
Any help would be appreciated.
Kind Regards,
GH
Hi Gary,
were you able to come up with a solution? I am facing the same requirement.
Would appreciate it, if you share your solution here.
Dee
You can use Range Query
Thanks mate, I had to define the field definition type as integer additionally
is working on a reply...