lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "mganesh" <>
Subject Query string
Date Fri, 02 May 2003 11:20:53 GMT
 Im having two fields identifier and contents. Both are indexed.
 I have to search on both fields.
1.  My search string is (Contents:searchtext) AND (identifier:10 OR identifier:60 OR identifier:100)

     But im not getting any results from the above query. 
     If i do query.toString("Contents") then only +Contents:searchtext +() gets printed.
     If im using TermQuery for each term and if i combine using BooleanQuery then everythin
works fine.
     I don't know where im wrong.

2.  which will be faster
     a. Executing a big query ex:(Contents:searchtext) AND (identifier:10 OR identifier:60
OR identifier:100 ......................... ) 
     b. Searching Contents from Lucene and fitering the results with the identifier.

3. If i want the results sorted in identifier then what should i do??

please send me some suggestions.




  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message