I am reading 2 query from file like,
Query q1 = new QueryParser(Version.LUCENE_CURRENT, "id", analyzer).parse(dis.readLine());
Query q2 = new QueryParser(Version.LUCENE_CURRENT, "id", analyzer).parse(dis.readLine());
I want these query to be combined as one query and give some boost (say by 5) to query 2 i.e q2.
Thanks,
Ravi
I believe this should work:
You searching using the
BooleanQuery
q3
.I'm not sure if you can boost a query or not. I know you can boost a field when you create the index e.g.
As far as combining those 2 queries:
Or something to that effect .....