commonsearch / cosr-back

Backend of Common Search. Analyses webpages and sends them to the index.
https://about.commonsearch.org
Apache License 2.0
123 stars 24 forks source link

Add support for site:example.com queries #16

Closed sylvinus closed 7 years ago

sylvinus commented 8 years ago

This would be helpful in the future, but also in the short-term to debug issues like commonsearch/cosr-results#2

A domain field will probably need to be added to the Elasticsearch mapping

Then we have to parse terms like site:example.com in the queries. Possibly related: #2 & commonsearch/cosr-front#18

sylvinus commented 8 years ago

The domain field has been added, all that's left to do is a small patch in searcher.py to use it: https://github.com/commonsearch/cosr-back/blob/master/cosrlib/searcher.py#L38