Try our conversational search powered by Generative AI!

MoreLike returns 0 results

Vote:
 

We're trying to use "MoreLike" with EPiServer Find 8.7.0.1103. The result from "MoreLike" is always empty. When we only use "For" it works great.

            var result1 = _client.UnifiedSearch()
                .For(query)
                .GetResult();
// result1 gives several results.

            var result2 = _client.UnifiedSearch()
                .MoreLike(query)
                .GetResult();
//result2 gives no results.

Shouldn't "MoreLike" result in at least as many items as "For"? What are we doing wrong?

#116112
Jan 23, 2015 11:23
Vote:
 

I am not shore that it works with unified search, you might find more information in this documentation: 

http://find.episerver.com/Documentation/dotnet-api-more-like-related-documents

#116116
Jan 23, 2015 12:51
Vote:
 

Thank you Henrik,

I've read the documentation.

                var result1 = Client.Search<MyPage>()
                    .For(searchQuery)
                    .GetContentResult();
// Several results.

                var result2 = Client.Search<MyPage>()
                    .MoreLike(searchQuery)
                    .GetContentResult();
// No results.

It results in the same when not using UnifiedSearch.

#116119
Jan 23, 2015 13:02
Vote:
 
#116122
Jan 23, 2015 13:15
Vote:
 

I think you are misinterpreting what MoreLike() should do. It doesn't make sense to give it the same search input as the FreeText-query.

I'm also unsure of whether it should work with UnifiedSearch.

The typical usage is something like the third documentation example,

 .MoreLike(firstBlogPost.Content)
#116158
Jan 25, 2015 19:05
Vote:
 

Thank you.

Yes, it seems to have been a misunderstanding.

#116168
Jan 26, 2015 8:01
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.