On Jun 8, 2010, at 1:57 PM, Naomi Dushay wrote:
Missing Facet Values:
-------

to find how many documents are missing values: facet.missing=true&facet.mincount=really big
        
http://your.solr.baseurl/select?rows=0&facet.field=ffldname&facet.mincount=10000000&facet.missing=true

        to find the documents with missing values:
http://your.solr.baseurl/select?qt=standard&q=+uniquekey:[* TO *] - ffldname:[* TO *]

You could shorten that query to just q=-field_name:[* TO *]

Solr's "lucene" query parser supports top-level negative clauses.

And I'm assuming every doc has a unique key, so you could use *:* instead of uniquekey:[* TO *] - but I doubt one is really better than the other.

        Erik

  • facet data cleanup Naomi Dushay
    • Re: [Blacklight-development] facet data cleanup Erik Hatcher

Reply via email to