4

in a SP Foundation 2013 we are always getting same results independently of search query entered: results always include the same documents (approx. 300 in a total of thousands).

All documents seem to have been correctly crawled. We are using installation defaults, including result sources.

Where should we begin to look into?

UPDATE AND SOLUTION We created a new result source with this query:

{?{searchTerms} (IsDocument=True)}

1
  • Your search query would be incorrect.To veirfy Open the results page -> edit page -> edit "search results" webpart ->in edit properties of webpart select "change query" button -> then in the pop up opened select "Basics" or "Test" to test and verify your query. If everything is fine here then check your result source's query. Thanks
    – Azam Khan
    Commented Dec 27, 2015 at 6:00

1 Answer 1

3

Maybe your query is executing before receiving your search terms like it happened to this blogger:

According to this article on technet, you could solve the issue by encapsulating your query terms like this:

{?{searchTerms}}
1
  • 1
    Lucas Rodrigues you pointed me in the right direction. I solved by creating a custom Result Source with this query: {?{searchTerms} (IsDocument=True)}
    – RaffaeleT
    Commented Dec 27, 2015 at 18:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.