2

I have a strange issue with a search in a SharePoint 2013 site. I can find a folder if I type "adams, drew" in a search bar in the document library - http://screencast.com/t/NVqFj2F0v, but if I type only a word "adams" it returns no results - http://screencast.com/t/0eMj1eJZAkG

I did not find any crawl errors that may be related to this. Does anybody know why it happens?

Thanks!

  • Smells like a bug to me, is this Office 365 or On-premises? – James Love Oct 23 '13 at 12:37
  • Did searching for "adams" ever return any results? – SkinnyE Oct 23 '13 at 13:03
  • Issues with adams is just an example, we have a lot of other issues similar to this, e.g. if I type "a and a marketing" it returns results, but if I type "marketing" it returns nothing, see screenshots: screencast.com/t/BFZ7q91I and screencast.com/t/LDxsJ8RbSp74 Thanks! – Sergey Oct 23 '13 at 13:14
  • have you tried searching for *marketing*? I had a similar problem on SharePoint 2010, the search only returned results if you wrote the full text of the property, not a piece of it, then I just had to change some search setting on central admin and it did the trick :) – Gintas K Oct 24 '13 at 13:11
  • Gintas, strange, marketing does not work, but drew is working well and I got the results screencast.com/t/d7fadjaz Which setting I need to change in central admin to make it work without *? Thank you! – Sergey Oct 24 '13 at 18:40
1

This is a solution in javascript that adds the wildcard across both sides of the query, but uses it's own textbox and submit button. I'm sure you can "view source" and find the generated HTML object of the search bar id instead of using new controls.

<script type="text/javascript">
 function RedirectUrl()
 {
 var tb = document.getElementById("tbSearch").value;
 if(tb != null)
 {
 window.location.href="?FilterName=Title&FilterMultiValue=*"+tb+"*";
 }
 return false;
 }
 </script>
 <input type="text" id="tbSearch" />
 <input type="button" id="btnSearch" value="search" onclick="return RedirectUrl();" /> 

Source: http://sharepoint2ktraining.blogspot.com/p/blog-page_18.html

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.