Sharepoint won't search Sub-Site - search

We have a Sharepoint Intranet which has many sub-sites. Search boxes in sub-sites can search through the intranet but I want them to search only in their own sub-site. I tried to change search page url in search box web part properties but it didn't work.
Thank you.

You need to configure the search source and scopes, since by default your search boxes are using out of the box settings, which are pretty much set to "search everything".
Have a look at this to help you.

Related

customize default search results shown on SharePoint Online Top Search

When you click on the default search box available at top of SharePoint Site, you see some default results shown by SharePoint.
I want to know the feature that enables/disables this behaviour.
And can we customize it further.
the bahavior
I tried going through the Search settings of site collection and Central admin.
No luck.
I found a thread for you that has the same need as yours:Avoid default results in Search Result Web Part
He solved the problem by adding \\{searchboxquery?} to the Search Results Web Parts content source, maybe it's worth a try for you.

Search Box Missing in Suite Bar in SharePoint Online

Everyone,
Greetings..!!
I have created Modern Team Site in SharePoint Online than, I have created 1 Test Page in Pages library.
When I opened Site Contents Search Box was shown in the SharePoint suite-bar. Please refer below image.[1]: https://i.stack.imgur.com/qnhWW.png
When I opened Test Page from Pages library. Search Box was missing in the SharePoint suite-bar. Please refer below image.
[2]: https://i.stack.imgur.com/EdvLR.png
Is there any way to unhide the Search Box on SharePoint Suite Bar while I am open page from pages library?
Please let me know your thoughts on the same.
Thanks in Advance.
It looks like you created modern team site but the page is in classic mode (may be it is a wiki page).
In classic sharepoint site search box is at right. In modern pages and sites, it is on top.

SharePoint site not getting indexed

Due to a requirement I have set the option "Allow this site to appear in search results?" to No. Later I have changed that options to Yes, but none of the site content are not retrieved by search. I have re-indexed the site and a list as well and still those are not indexed. Now 24 hours gone after making it to yes.
Appreciate if anyone can suggest a solution.
Could you check if your search account and content access that you use has FULL read access to your web applications. Also, make sure your read access to User profile service Applications as well as People search working.
And i see you've already have set "Allow this site to appear in search results?" to Yes.
Could you check if you set " Allow items from this document library to appear in search results?" to yes as well ?
Here are the steps on how to set up document library to appear in search results:
As an admin, locate the library that's missing from search results.
Click the gear icon () in the upper-right corner.
Select Library Settings.
Select Advanced Settings.
Make sure that Allow items from this document library to appear in
search results? is set to Yes.
After the setting is set to Yes, the library should be indexed during the next scheduled crawl.
For more detailed info please review here

sharepoint search problem

I'm working on a sharepoint project.
After I adding the search web part. The search function behaves weird.
I have crawled the content source and configured the permission.
The following search bar, no matter what I search, I got nothing
But the advanced search web part can work properly.
The thing is, in the result page of the advanced search web part, if I choose to see the result of my sharepoint website instead of "Any Site", I got nothing. I am sure that the result of "Any Site" is from my sharepoint site.
Any ideas will be appreciated.
Regards,
Bin
You need to check your search log to make sure content is being crawled correctly. It looks like you do not have any results for your a particular site. modify your search webpart to show the scopes drop down an experiment to find out which scopes are not responding correctly and debug from there.
You need to ask this question on serverfault.com or sharepoint.stackexchange.com as this site trys to deal with programming specific errors only.
It sounds like you might be crawling a non default zone. Maybe you're crawling an intranet or extranet zone. Make sure you crawl the default zone and that the default zone has NTLM authentication enabled and that the crawler has access to the web application via full read policy.
If this is SharePoint 2010 Foundation and you have named your documents_with_underscores, the underscores are not word breakers and as a result no matter what you search for "Documents" "with" or "underscores", in that case, would be successful. The word "with" would be removed by the content processor (search query and site settings service) in 2010 and the other two words would not be read as separate words because 2010 foundation would treat documents_with_underscores as one word. If you searched for "documents_with_underscores" you would find it.

WSS Search - Content inside webparts

How would you go about having WSS search index content that's inside a webpart/pulled from an external source and presented in a SPGridView?
You probably already know this, but if you go to Site Settings -> Search Visibility you will see a section stating:
This site contains fine-grained permissions. Specify the sites ASPX page indexing behavior: ...
If you choose "Always index all ASPX pages on this site" it should index the content in your web part, but only as the crawler sees it, so security trimming would not apply. It is basically a web crawl and not a SharePoint content crawl.
I know you said WSS, but in MOSS you might be able to take this one step further if the above did not work out and use a web site search on your SharePoint site. I have done plenty of web site searches (it does not work perfectly), but have not tried to explicitly do a web site search on a SharePoint site so I'm not certain this will work.
Lars (who co-wrote "Inside the Index and Search Engines: MOSS 2007") is pretty active on StackOverflow so maybe he'll chime in.
Also in MOSS: Have the data you are displaying available as for instance a web service / page in a different site also. In Moss you can add Federated Search locations to be included in the Search results.

Resources