volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

AI OnAI Off

Customise FIND Result

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

#226409
Aug 12, 2020 7:49

Hi Ravindra,

Thanks for your reply.

We are doing filter and boostmatching in our current implementation.Multi search is not supporting filter. Any alternate way to accomplish this?

Thanks,

Mekala V

#226447
Aug 13, 2020 7:24
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.