Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Steve 3 posts 73 karma points
    Mar 25, 2017 @ 12:42
    Steve
    0

    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

  • Shashank Balooni 2 posts 72 karma points
    Mar 27, 2017 @ 09:06
    Shashank Balooni
    0

    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,

  • Sven Geusens 169 posts 881 karma points c-trib
    Mar 27, 2017 @ 14:22
    Sven Geusens
    0

    Also more information about examine from the Shannon himself: https://github.com/Shazwazza/Examine/wiki

Please Sign in or register to post replies

Write your reply to:

Draft