AnsweredAssumed Answered

Advanced Site Search returns results for repository when keywords empty

Question asked by ashex on Jul 26, 2013
I made a minor customization to the Advanced Search Form by adding Category/Tags to the form. I noticed that for a site search if I leave the keywords field empty and select a category I get results for the entire repository. If I add anything to the keyword search results are restricted to the site.

Why is this the case? I set startLocation to {doclib} for the categories field but it didn't change the behavior.

Edit: This looks to be an Alfresco bug as I replicated it with the default search form. Is this because of how the default query is crafted? I'll turn up logging on the search queries and capture what's being sent to solr.