: text field:value : : I want to return all documents with 'text'. Documents where 'field = value' : boosted over documents where 'field = some other value'. : : This query does it: : : (text field:value)^100 (text -field:value) : : Is there a simpler way? (I might have left out crucial AND/OR clauses, but : you get the picture.)
Unless i'm *drasticly* missunderstanding your question, what you are asking for is... +text field:value docs must match "text" if they also match "field:value" they will score higher. depending on the finer points of how exactly you want the scores computed, you might want something like... +text field:value^10000 ...or... +text^100000 field:value ...but in either case it's just a question of scoring, both queries will require that "text" match. -Hoss