And one solution is to use UpdateRequestProcessor that will create a separate binary field for presence/absence and query on that instead.
Regards, Alex. Personal website: http://www.outerthoughts.com/ Current project: http://www.solr-start.com/ - Accelerating your Solr proficiency On Fri, Apr 4, 2014 at 11:13 PM, Chris Hostetter <hossman_luc...@fucit.org> wrote: > > : "field" : "" // this is the field that I want to learn which document has > : it. > > How you (can) query for a field value like that is going to depend > entirely on the FieldTYpe/Analyzer ... if it's a string field, of uses > KeywordTokenizer then q=field:"" should find it -- if you use a more > traditional analyzer then it probably didn't produce any terms for hte > input "" and from Solr's perspective a document that was indexed using > an empty string value is exactly the same as a document that had no value > when index. > > In essenc,e your question is equivilent to asking "How can i search for > doc1, but not doc2, evne though i'm using LowerCaseAnalyzer which produces > exactly the same indexe terms or both... > > doc1: Quick Fox > doc2: quick fox > > > > -Hoss > http://www.lucidworks.com/