I can see that if a job has multiple industries the field value within the examine data looks like this
umb://document/e2f9c57f8f4c4804adb4bbd23eb6ed6f,umb://document/a33327abbd544abfb1a7444e9d59310a
The above query returns jobs which have only one industry and fails to return jobs with multiple industries regardless to if they have one matching the search.
Basically its searching the industries value for an exact match but I need this to be searching if the industries value contains my search value.
Can anyone point me in the right direction how I should be searching fields based on a contains.
Umbraco Examine Lucene Search Multiple Children / Keys
Hi Guys,
I am no expert on Examine searching and having a little trouble with the following search.
Basically what I am trying to do is....
A job has multiple industries
I can see that if a job has multiple industries the field value within the examine data looks like this umb://document/e2f9c57f8f4c4804adb4bbd23eb6ed6f,umb://document/a33327abbd544abfb1a7444e9d59310a
The above query returns jobs which have only one industry and fails to return jobs with multiple industries regardless to if they have one matching the search.
Basically its searching the industries value for an exact match but I need this to be searching if the industries value contains my search value.
Can anyone point me in the right direction how I should be searching fields based on a contains.
Kind Regards
David
Hi,
So I think I have found the answer. I still need to run through so testing but it looks like this does the trick.
I had to add an extra using statement to release some extra extension methods I didn't know about.
Hope this helps someone having the same problems.
Kind Regards
David
is working on a reply...