This way I am indexing my files:
InputStream is = new BufferedInputStream(new
FileInputStream(file));BufferedReader bufr = new BufferedReader(new
InputStreamReader(is));String inputLine=""
;while((inputLine=bufr.readLine())!=null ){Document doc = new
Document();
doc.add(new
Field("contents",inpu
Have you considered indexing chapters as documents? Using your example you
would have three documents corresponding to your three chapters: A, B, and
D. Once you have that structure the query "pain AND head" returns only
chapters A and B. Using the information gained from this new chapter index
you
Hello,
Let me explain my case:
- suppose I am searching word ("pain" (in same chapter) "head") .This
is my query.
Now what i need to do is i need to first search "pain" and then i need to
search "head" seperately then i need common file name of both search result.
Now the criteria is Suppose:
: then which one is right tool for text searching in files. please can you
: suggest me?
so far all you've done is show us your *indexing* code; and said that
after you do a search, calling searcher.doc(docid) on 500,000 documents is
slow.
But you still haven't described the usecase you are tr
www.thetaphi.de
eMail: u...@thetaphi.de
> -Original Message-
> From: neeraj shah [mailto:neerajsha...@gmail.com]
> Sent: Friday, April 21, 2017 1:22 PM
> To: java-user@lucene.apache.org
> Subject: Re: How to get document effectively. or FieldCache example
>
> t
then which one is right tool for text searching in files. please can you
suggest me?
On Fri, Apr 21, 2017 at 2:01 PM, Adrien Grand wrote:
> Lucene is not designed for retrieving that many results. What are you doing
> with those 5 lacs documents, I suspect this is too much to display so you
> p
Lucene is not designed for retrieving that many results. What are you doing
with those 5 lacs documents, I suspect this is too much to display so you
probably perform some computations on them? If so maybe you could move them
to Lucene using eg. facets? If that does not work, I'm afraid that Lucene
Yes I fetching around 5 lacs result from index searcher.
Also i am indexing each line of each file because while searching i need
all the lines of a file which has matched term.
Please tell me am i doing it right.
{code}
InputStream is = new BufferedInputStream(new FileInputStream(file));
Buf
IndexSearcher.doc is the right way to retrieve documents. If this is
slowing things down for you, I'm wondering that you might be fetching too
many results?
Le jeu. 20 avr. 2017 à 14:16, neeraj shah a écrit :
> Hello Everyone,
>
> I am using Lucene 3.6. I have to index around 60k docuemnts. Afte
Hello Everyone,
I am using Lucene 3.6. I have to index around 60k docuemnts. After
performing the search when i try to reterive documents from seacher using
searcher.doc(docid) it slows down the search .
Please is there any other way to get the document.
Also if anyone can give me an end-to-end
10 matches
Mail list logo