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

  • space could be problem? what is the static name of custom property? – SharePointMan Apr 11 '14 at 7:07
  • The custom property has no spaces, it is called AssociatedContentType. Other values with spaces works, but not some – Robert Lindgren Apr 11 '14 at 7:12
  • can you just provide the value you are trying to search, if you don't mind – SharePointMan Apr 11 '14 at 7:23
  • Did you try to encode the query string? – Nk SP Apr 11 '14 at 7:31
  • I have tried the same query (MyCustomProperty="Something is wrong") from a search center, yields no results – Robert Lindgren Apr 11 '14 at 7:34
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

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.