does lucene search function work in large size document? -
i have problem when search lucene.
first, in lucene indexing function, works huge size document. such .pst file, outlook mail storage. can build indexing file include information of .pst. problem large sometimes, include words.
so when search using lucene, can process front part of indexing file, if 1 word come out part of indexing file, couldn't find word , no hits in result. when separate indexing file several parts in stupid way when debugging, , searching every parts, can work well.
so want know how separate indexing file, how size should limit of searching?
cheers , wait 4 reply.
++++++++++++++++++++++++++++++++++++++++++++++++++
hi,there, follow coady siad, set length max 2^31-1. search result still can't include want. simply, convert doc word string array[] analyze, 1 doc word has 79680 words include space , symbol. when search word, return 300 count, has more 300 results. same reason, when search word in part of doc, couldn't find. //////////////set length
idexwriter.setmaxfieldlength(2147483647);
////////////////////search
indexsearcher searcher = new ndexsearcher(program.parameters["index_location"].tostring()); hits hits = searcher.search(query);
this code, others same. found problem when need count every word hits in doc. found couldn't search word in part of doc.
pls me find, there set searcher length somewhere? how u meet problem.
if can search results front of document, document longer indexwriter's maxfieldlength. try setting higher number (the default 10000).
Comments
Post a Comment