I think https://umbraco.com/blog/examining-examine/ will help you understand The indexes better.
The fluent API for umbraco Examine has functions such .OR() and .AND() that can be used.
I personally feel using GroupedOr() is better where you can define all the fields you want to search through. Say you define Fields A and B. The function will work to search it in A ,if not in a Then B. Just like an OR statement.
You can also chain it with multiple .OR or .AND to make the search as Flexible as you need.
Needless to say the above link will help you understand Examine. The fluent API is very simple to use.
Extending Examine to allow for advanced searching
New to umbraco and trying to understand how i might be able to allow examine to accept search terms like this:
this or that
this and that
this or that and (me or you)
basically have it recognize the and, or, and parentheses and execute accordingly.
Thanks
Hi Steve,
I think https://umbraco.com/blog/examining-examine/ will help you understand The indexes better. The fluent API for umbraco Examine has functions such .OR() and .AND() that can be used. I personally feel using GroupedOr() is better where you can define all the fields you want to search through. Say you define Fields A and B. The function will work to search it in A ,if not in a Then B. Just like an OR statement. You can also chain it with multiple .OR or .AND to make the search as Flexible as you need.
Needless to say the above link will help you understand Examine. The fluent API is very simple to use.
All the best,
Also more information about examine from the Shannon himself: https://github.com/Shazwazza/Examine/wiki
is working on a reply...