If I have a Lucene query string
'field1:value1 myField:aValue'
Is there a way to let Lucene parse this so I can get term queries?
I ultimately want to be able to get the field names and their values back to my viewdata so I can fill them in my textboxes on post back.
lucene’s
QueryParserwill convert that string into aBooleanQuerycontaining twoTermQueryclauses. You’ll need to use thegetClausesmethod ofBooleanQueryto get the term queries.