Forum Discussion
Unable to Retrieve Search Queries from Sharepoint
- Aug 24, 2023
Hi Jedrek96 ,
It seems like that content source is not indexing anything.
You need to enable either an incremental crawl and schedule the "Fullcrawl" and "Incremental Crawl" timeframes or enable a continuous crawl.
After a successfull "Full Crawl" your document might show up in the search results.
You have that "Gear" Icon if you are on newer versions of SharePoint. If you have an older version then you can find "List Settings" or "Document Library Settings" in the ribbon of the list/library your are in.
Best Regards,
Sven
Hi Jedrek96
I understand that you uploaded an XML file into SharePoint with the content you provided.
In that case the query http://www.test.com/_api/search/query?querytext=%27Document%27 should work. (After the file has been successfully indexed by the search crawler)
Wait an hour or so and try again....
If this still does not work then try to re-index the document library ("Gear"->"Library Settings"->"More Library Settings"->"Advanced Settings" and then scroll down to "Reindex Document Library")
If this still does not work and you are using an on Premise version of SharePoint, then ask an admin to go to "Central Administration" and check if the incremental search index is working.
The query
http://www.test.com/_api/search/query?querytext=%27title:%22Report%22%27
should only return results if you manually set the "title" property of the document to be "Report". But in that case it should work.
Best Regards,
Sven
- Jedrek96Aug 24, 2023Copper Contributor
Hello Sven,
Thanks for your reply. I have access to the Central Administration and these are the preset settings for the crawl (Added the images in the post above). I assume the configurations are correct based on online resources. I removed the Start Addresses for security purposes but they are right as well.
I don't seem to have the "Library Settings" under the gear icon though. Is there a workaround for this?- SvenSieverdingAug 24, 2023Bronze Contributor
Hi Jedrek96 ,
It seems like that content source is not indexing anything.
You need to enable either an incremental crawl and schedule the "Fullcrawl" and "Incremental Crawl" timeframes or enable a continuous crawl.
After a successfull "Full Crawl" your document might show up in the search results.
You have that "Gear" Icon if you are on newer versions of SharePoint. If you have an older version then you can find "List Settings" or "Document Library Settings" in the ribbon of the list/library your are in.
Best Regards,
Sven- Jedrek96Aug 24, 2023Copper ContributorThis did it! Thank you for your guidance Sven ☜('ヮ'☜)