18F / fbopen

[DEPRECATED] An open API server, data import tools, and sample apps to help small businesses search for opportunities to work with the U.S. government.
Other
101 stars 45 forks source link

Remove relevance if there's no keyword query #62

Closed arowla closed 10 years ago

arowla commented 10 years ago

The relevance currently always displays. Under the Solr version, a number of filter params were promoted to query params if there was no keyword query present. However, this functionality isn't present in the Elasticsearch version, partly due to the complication of expressing this in the Elasticsearch JSON / Elastic.js DSL, and partly because it doesn't make all that much sense to score records based on whether they're "closed" or on what dataset they belong to. Those things should really just remain filters.

So, don't show relevance when there is no query present.