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)}

  • 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 Dec 27 '15 at 6:00

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:

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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