Hi, We have a SOLR query like this
q=ddmdate%3A2012-05-01T00%3A00%3A00Z+NOT+dddate%3A2010-06-11T00%3A00%3A00Z&wt=json&indent=true&hl=true&hl.simple.pre=%3Ch1%3E&hl.simple.post=%3C%2Fh1%3E&hl.requireFieldMatch=true&hl.preserveMulti=true&hl.fl=ot&f.ot.hl.fragsize=300&f.ot.hl.alternateField=ot&f.ot.hl.maxAlternateFieldLength=300&fl=id And the response looks like this and notice the work not is highlighted by solr: { "responseHeader":{ "status":0, "QTime":5, "params":{ "f.ot.hl.maxAlternateFieldLength":"300", "hl.requireFieldMatch":"true", "fl":"id", "f.ot.hl.alternateField":"ot", "indent":"true", "q":"ddmdate:2012-05-01T00:00:00Z NOT dddate:2010-06-11T00:00:00Z", "f.ot.hl.fragsize":"300", "hl.preserveMulti":"true", "hl.simple.pre":"<h1>", "hl.simple.post":"</h1>", "hl.fl":"ot", "wt":"json", "hl":"true"}}, "response":{"numFound":1,"start":0,"docs":[ { "id":"xrbw0180"}] }, "highlighting":{ "xrbw0180":{ "ot":[" of this info getting out to consumers and others, therefore, please do <h1>not</h1> forward or provide copies to others. Hope this helps...\n\nKevin\n\nl\n\n5027717374#12;pgNbr=1\n"]}}} This happens with OR as well: q=ddmdate%3A2012-05-01T00%3A00%3A00Z+OR+dddate%3A2010-06-11T00%3A00%3A00Z&wt=json&indent=true&hl=true&hl.simple.pre=%3Ch1%3E&hl.simple.post=%3C%2Fh1%3E&hl.requireFieldMatch=true&hl.preserveMulti=true&hl.fl=ot&f.ot.hl.fragsize=300&f.ot.hl.alternateField=ot&f.ot.hl.maxAlternateFieldLength=300&fl=id { "responseHeader":{ "status":0, "QTime":4, "params":{ "f.ot.hl.maxAlternateFieldLength":"300", "hl.requireFieldMatch":"true", "fl":"id", "f.ot.hl.alternateField":"ot", "indent":"true", "q":"ddmdate:2012-05-01T00:00:00Z OR dddate:2010-06-11T00:00:00Z", "f.ot.hl.fragsize":"300", "hl.preserveMulti":"true", "hl.simple.pre":"<h1>", "hl.simple.post":"</h1>", "hl.fl":"ot", "wt":"json", "hl":"true"}}, "response":{"numFound":1,"start":0,"docs":[ { "id":"xrbw0180"}] }, "highlighting":{ "xrbw0180":{ "ot":[" of this info getting out to consumers and others, therefore, please do not forward <h1>or</h1> provide copies to others. Hope this helps...\n\nKevin\n\nl\n\n5027717374#12;pgNbr=1\n"]}}} This does not happen with the AND operator. Is this a bug in solr? Or is it a feature that I can turn off? Rebecca Tang Applications Developer, UCSF CKM Industry Documents Digital Libraries E: rebecca.t...@ucsf.edu