7

I have a problem where one of my documents does not show up in search. I have investigated with the REST API and found no evident wrongs.

Example:

Doing a search for MyCustomProperty="Something is wrong" returns 0 hits

But doing a search for MyCustomProperty="Something*" returns my document

By using REST API I can see in the latter case that MyCustomProperty is set to Something is wrong.

Why is it not returned in the first case?

Note that the first case works for the main part of document, but not for documents where MyCustomProperty is set to Something is wrong. TrimDuplicates= false does not help

Robert Lindgren
  • 24,520
  • 12
  • 53
  • 79

1 Answers1

0

Since MyCustomProperty="Something*" matched your document your managed property contains parts of your string but it doesn't equal your string. Did you try using :? Have you tried using wildcard with more search terms, i.e. MyCustomProperty="Something is*" or MyCustomProperty="Something is wrong*"? Is your query language and detected document language the same? I recommended the SharePoint 2013 Search Query Tool for debugging

  • By using the rest API I have make sure the languages match, and by using wildcard I can see that the value saved in the managed property is indeed the full value, but it is still not retuned using equal sign (even when copy pasting the actual value returned from a wild card search). – Robert Lindgren Apr 17 '14 at 16:25
  • Using a query analyzer tool is not the solution since this do work for all but one value – Robert Lindgren Apr 17 '14 at 16:25