Class SearchFiles
java.lang.Object
SearchFiles
class SearchFiles
- extends java.lang.Object
Field Summary |
private static java.util.logging.Logger |
logger
|
Method Summary |
private static void |
generateOutput(org.apache.lucene.search.Hits hits,
java.util.Vector<org.apache.lucene.search.TermQuery> terms,
java.lang.String query_num,
java.io.BufferedWriter writer,
int termCount,
int outCount,
org.apache.lucene.search.Searcher searcher,
org.apache.lucene.search.Similarity similarity,
org.apache.lucene.index.FilterIndexReader idxReader)
Generates necessary output - in this case this output is used as input to matlab |
static void |
main(java.lang.String[] args)
args
0 - properties_file
# index-dir
index-dir = index
# query-file
query-file = queries.txt
# out-count
docs-per-query = 1000
# query-term-count (0 - any count) (ex. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static java.util.logging.Logger logger
SearchFiles
SearchFiles()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- args
0 - properties_file
# index-dir
index-dir = index
# query-file
query-file = queries.txt
# out-count
docs-per-query = 1000
# query-term-count (0 - any count) (ex. queries with only 3 terms - 3 )
query-terms-count = 0
# out-file - name of the file where results will be written
out-file = search.result
#query-expansion
For details see
QueryExpansion Constants
- Throws:
java.lang.Exception
generateOutput
private static void generateOutput(org.apache.lucene.search.Hits hits,
java.util.Vector<org.apache.lucene.search.TermQuery> terms,
java.lang.String query_num,
java.io.BufferedWriter writer,
int termCount,
int outCount,
org.apache.lucene.search.Searcher searcher,
org.apache.lucene.search.Similarity similarity,
org.apache.lucene.index.FilterIndexReader idxReader)
throws java.io.IOException
- Generates necessary output - in this case this output is used as input to matlab
- Parameters:
hits
- terms
- query_num
- - tag of the querywriter
- termCount
- outCount
- idxReader
- similarity
- searcher
-
- Throws:
java.io.IOException