Re: How to get document effectively. or FieldCache example

2017-04-24 Thread neeraj shah
; chapters A and B. Using the information gained from this new chapter index > you could then use your existing index to do "pain AND head AND (chapter:A > OR chapter:B)" > > On Fri, Apr 21, 2017 at 10:40 PM, neeraj shah > wrote: > > > Hello, > > Let me explain my

Re: How to get document effectively. or FieldCache example

2017-04-21 Thread neeraj shah
mpletley unsupported -- any advice you are given on this list > is likeley to refer to APIs that are completley different then the version > of Lucene you are working with. > > > : > : > : On Fri, Apr 21, 2017 at 2:01 PM, Adrien Grand wrote: > : > : > Lucene

Re: How to get document effectively. or FieldCache example

2017-04-21 Thread neeraj shah
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 > is not the right tool for your problem. > > Le ven. 21 avr. 2017 à 08:56, neeraj shah a > écrit : > > > Ye

Re: How to get document effectively. or FieldCache example

2017-04-20 Thread neeraj shah
)); doc.add(new Field("field3",sec,Field.Store.YES,Field.Index.NOT_ANALYZED)); writer.addDocument(doc); } is.close(); {/code} On Thu, Apr 20, 2017 at 5:57 PM, Adrien Grand wrote: > IndexSearcher.doc is the right way to retrieve documents. If this is > slowing thin

How to get document effectively. or FieldCache example

2017-04-20 Thread neeraj shah
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

How to use FieldCache and Custom Collector to improve search speed

2017-04-10 Thread neeraj shah
I am using Lucene 3.6 and i am trying to implement FieldCache. I have seen some posts but did not get any clear idea. Can anyone please suggest me any link where i can find proper example of FieldCache and how to use it while searching.

Re: how to fetch qyery feild + other feild related results in Lucene3.6

2013-06-24 Thread neeraj shah
doc.add(new Field("remrid",remrid,Field.Store.YES,Field.Index.ANALYZED)); doc.add(new Field("remauthid",remauthid,Field.Store.YES,Field.Index.ANALYZED)); doc.add(new Field("rubnum",rubnum,Field.Store.YES,Field.Index.ANALYZED)); wr

Re: how to fetch qyery feild + other feild related results in Lucene3.6

2013-06-24 Thread neeraj shah
so how can i solve this and reduce time? On Mon, Jun 24, 2013 at 2:21 PM, Roberto Ragusa wrote: > On 06/24/2013 08:38 AM, neeraj shah wrote: > > My hit size is 127674 and even if i comment the remedy fetching code ( > the > > second search in for loop) still its taking very l

Re: how to fetch qyery feild + other feild related results in Lucene3.6

2013-06-23 Thread neeraj shah
e); > > remedy.setRubricID(remrid); > remedy.setAuhtorId(remauthid); > int mark = Integer.parseInt(remmarks); > remedy.setMarks(mark); > > > remedy.setAuhtorAbbrivation(auth.get(remauthid.toLowerCase().trim()).toString()); > >

Re: how to fetch qyery feild + other feild related results in Lucene3.6

2013-06-23 Thread neeraj shah
ngth); List lstRubricIdsAdded = new ArrayList(); for(int k=0;kwrote: > On 06/22/2013 11:38 AM, neeraj shah wrote: > > i have already tried this. I am fetching the info of "ABC" and then > passing > > then again in searcher with new Query then adding the required re

Re: how to fetch qyery feild + other feild related results in Lucene3.6

2013-06-22 Thread neeraj shah
re another way to get the result in Lucene. On Sat, Jun 22, 2013 at 2:57 PM, Roberto Ragusa wrote: > On 06/22/2013 08:07 AM, neeraj shah wrote: > > Hello, > > > > Im using Lucene 3.6.2. and my file, which i indexed ,is something like > > this : > > > > F

how to fetch qyery feild + other feild related results in Lucene3.6

2013-06-21 Thread neeraj shah
Hello, Im using Lucene 3.6.2. and my file, which i indexed ,is something like this : FIELD-1 FIELD-2 FIELD-3 FIELD-4 DOC1: A ABC DOC2: B ABC DOC3: C ABC DOC4: D ABC DOC5: E WWW ABC DOC6: F DEF DOC7: G DEF DOC8: H D

how to reterieve all results from lucene searcher.search() method

2013-06-19 Thread neeraj shah
hello, Is there any way to get all the search result. In lucene we get top documents by giving the limit like top 100,1000... etc. but if i want to get all results. How can I achieve that?? Query qu = new QueryParser(Version.LUCENE_36,"field", analyzer).parse(query); TopDocs hits = searcher.

How to get compelete sentences from best fragments in Lucene2.9.

2013-05-09 Thread neeraj shah
Hello, After search when im fetching the fragments to show result like google using method: String[] fragments = hi.getBestFragments(tokn, contents,20); im getting the best fragments. When i am iterating through the fragments i get one by one all fragments. These fragments contains search word

Re: how can i search multiple words in line and paragraph?

2012-07-26 Thread neeraj shah
any code example for search words in paragraph or in line. On Thu, Jul 26, 2012 at 3:34 PM, neerajshah84 wrote: > can you send me any example for search words in paragraph or in line. > > On Wed, Jul 25, 2012 at 2:33 PM, Ian Lea [via Lucene] < > ml-node+s472066n399717...@n3.nabble.com> wrote: >

Can anyone guide me for this...!!!

2012-03-29 Thread neeraj shah
im using lucene2.9 and i need display search result like filename,filepath,textContent.. this text content highlight the matched string. When click on the search result ,it will go to the exact file and and the exact line. i tried to do it but my index size is very huge, i think im doing something