Dim qp1 As New QueryParser(\"filename\", New StandardAnalyzer())
Dim qp2 As New QueryParser(\"filetext\", New StandardAnalyzer())
.
.
I am using th
Just build a query string with each term:
"filename:searchText OR filetext:searchText"
It doesn't matter what you pass as the initial field in QueryParser's constructor. Just make sure you call .Parse() on your query string to get a Query object back to execute.
If you want to use an "and" search:
"+filename:searchText +filetext:searchText"