documentcloud / documentcloud

The DocumentCloud platform
https://www.documentcloud.org
MIT License
424 stars 162 forks source link

Search strips quotes around terms on second page of results and elsewhere! #251

Open lgrandestaff opened 9 years ago

lgrandestaff commented 9 years ago

When searching for a term with quotes around it, the search functions strips the quoted term into two separate search words when advanced to the second page search_1

search_2

stucka commented 8 years ago

Different scope: Even on the first page of search results, quoted phrases are getting searched as separate words. Example of a garbage phrase that doesn't appear, "the a south": https://www.documentcloud.org/search/Account:%202258-ted-han%20Filter:%20Published%20Text:%20%22the%20a%20south%22

Search results are identical to "the" and "a" and "south": https://www.documentcloud.org/search/Account:%202258-ted-han%20Filter:%20Published%20Text:%20the%20Text:%20a%20Text:%20south

Neither phrase appears in either document, though the individual words do.