Mutiple search queries in sitefinity search
Guys,
here is my problem,
I am using the search results control of sitefinity.
I have a search term, let's say "Term1" which returns 5 results.
I have another term , lets say "Term2" which returns 3 results.
Now when I search for "Term1 Term2" sitefinity is returning just 1 result. It is trying to find the results which have both the terms in it. But I am looking for the opposite results, I dont want the intersection of these two terms, I want union of both the results, I mean I want to see 8 results (5 for term1 and 3 for term 2)
Please let me know how we can do this.
Hi Prashant,
Currently our search control is built on the match case logic which finds exact match of the words that are being searched for. However, you have the option to override the initializeControls method in the Search Results control in order to extend the default logic of the control. There is one variable:
var result = searcher.Search(searchQuery,
this
.IndexCatalogue, skip, take,
out
totalItems);