Quantcast
Channel: Using Optimizely Platforms
Viewing all articles
Browse latest Browse all 8020

Customise FIND Result

$
0
0

Hi ,

Find Query that should satisfy the following conditions.

  1. Must match *searchKey*
  2. Should also match searchKey
  3. Should also match searchKey*

Now we have implemented the following query for above but it also returns the matches for *searchKey which we don't need in results.

ITypeSearch<T> query = SearchClient.Instance.Search<T>().For(searchKey, q =>
                                                {
                                                    q.Query = string.Concat("*", searchKey, "*");
                                                }).WithAndAsDefaultOperator().UsingSynonyms();

Kindly help us.

Thanks,

Mekala V


Viewing all articles
Browse latest Browse all 8020

Trending Articles