Don't miss out Virtual Happy Hour today (April 26).

Try our conversational search powered by Generative AI!

Combining the use of UnifiedSearchFor with Search<Type>

Vote:
 

Is this possible? I'm attempting to build search functionality for pages that implement a certain interface. The original need for this was because we need to filter by properties that are exclusive to this interface, but then the stakeholders decided they'd like to use this in conjunction with a free text search.

How would I go about this? For the free text search I was under the impression that I use:

SearchClient.Instance.UnifiedSearchFor(keywords)

And I know that I can use:

.Filter(x => ((Interface)x).Property.Match(desiredValue))

But this seems messy to me. Originally I was able to pass in the type like this:

SearchClient.Instance.Search 



#141121
Nov 10, 2015 12:06
Vote:
 

Hi,

You can do a freetext search with a typed search. UnifiedSearch is used when you want to search over multiple types. So there's no need to use UnifiedSearch just to do a freetext search.

#141274
Nov 11, 2015 3:04
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.