query: order of search

2010-03-31 Thread suman.holani
Hello Query I Does the order of query play role in searching example:doc has fields rollno(pk), name, marks Query : marks=90&rollno=2&name=abc Query :rollno=2&name=abc&marks=90 which query processing will be more efficient. is it work like search doc field by field , it will look for doc havi

Re: query: order of search

2010-04-01 Thread suman.holani
Query I its written "to do a "search within search", so that the second search is constrained by the results of the first query" we can use boolean query. So doesn't it mean the order of query ll be preserved give me an simple example of how the docs get searched in lucene. 10 docs with 3 fields

Re: query: order of search

2010-04-01 Thread suman.holani
Hello Erick, I was trying to optimise the searching. Basically my data is like field1 has less no of docs matching compared to field2, which has larget sets. So if search goes by order to order, then i can make field1 to be search first, (by making order of boolean query such )and from thr the

Re: Range Query Assistance

2010-04-16 Thread suman.holani
Hello Joseph, Yes this would work .Range queries could be used for range searches. But this is very expensive in terms of performance. Regards, Suman On Fri, 16 Apr 2010 06:23:30 -0700, wrote: > Hello, > > I would like to query based on a start and end date. I was thinking > something like

inverted index in clucene

2010-06-29 Thread suman.holani
Hello , Can we use subset of documents , for searching . Lets say I have hash map of P1 -1,2,3,4 P2 - 3,4,5 P3-7,5,3 Now I have an documents in lucene index stored as 1-P1 2-P1 3-P1,P2,P3 4-P1,P2 5-P2,P3 7-P3 .. .. when i search docs with P2 I get 3,4,5 Now I want

subset query :query filter or boolean query

2010-07-14 Thread suman.holani
Hi , I have 4 query search fields. case 1 : if i use one search field to make a query filter and then use the query filter to search on other 3 fields so as to reduce the searching docs subset. case 2: i use all query parameters using boolean query , whole of index will be searched. Which

lucene scanning

2010-08-26 Thread suman.holani
hi , 1. whether any search query, will scan for all documents in the lucene indexes 2. I want to search query faster.So I thought of if I could reduce the number of docs , lucene needs to search for , when given some search parameters. It would act lil faster. Can we make subset (subindexe

Re: Search within a document

2010-09-14 Thread suman.holani
you can use query filter for that purpose . Suman On Tue, 14 Sep 2010 17:14:19 +0530, Pankaj Malhotra wrote: > Also, if someone could tell how to search across all the fields together > and > also know which field the search result belong to. Other than using the > "All" field kind of approac

Re: integrating RAMDirectory in FSDirectory or other way round

2010-10-11 Thread suman.holani
I am also having a similar requirement .But its other way round. Basically ,I have indexes in FSDirectory and which is transferred to another machine on regular basis. But now for the reason of faster searches, it would be better to copy the indexes onto RAM. (RAMDirectory). Not sure of how it c

fields : stored and indexed

2011-02-17 Thread suman.holani
Hello, I am little confused on the stored and index part of lucene How it actually stores the indexed field and stored field Is it that for every field indexed , all the store fields added .I mean do we create diff indexes for every indexed field ,replicating the stored field in each of th

RE: fields : stored and indexed

2011-02-17 Thread suman.holani
some of the stored fields use a FieldSelector. http://wiki.apache.org/lucene-java/ImproveSearchingSpeed has good info on making searching fast. -- Ian. On Thu, Feb 17, 2011 at 10:39 AM, suman.holani wrote: > Hello, > > > > I am little confused on the stored and index part of luc

performance issues in multivalued fields

2011-03-07 Thread suman.holani
Hello, I am facing an issue for multivalued fields in lucene I am generating lucene doc , where page is multivalued . So my doc will be like this having more than n fields( which can be more than 1500 also ..) per doc in case page attribute Example

RE: performance issues in multivalued fields

2011-03-07 Thread suman.holani
please. Best Erick On Mon, Mar 7, 2011 at 6:41 AM, suman.holani wrote: > Hello, > > > > I am facing an issue for multivalued fields in lucene > > > > I am generating lucene doc , where page is multivalued . > > So my doc will be like this having more than n fiel

document object

2011-03-10 Thread suman.holani
Hi, I am facing the problem The line in the loop is going very slow giving me a performance hit for (int i = 0; i < hits.length; ++i) { int docId = hits[i].doc; Document d = searcher.doc(docId); //problem } How can I improve

RE: document object

2011-03-10 Thread suman.holani
dCache it'd be a nice thing to do. Hope that helps. -- Anshum Gupta http://ai-cafe.blogspot.com On Thu, Mar 10, 2011 at 3:01 PM, suman.holani wrote: > > > Hi, > > > > I am facing the problem > > > > The line in the loop is going very slow givi

RE: document object

2011-03-10 Thread suman.holani
ata. I know that's a vague answer but that's the point. > What you could do is use FieldCache if memory and data let you do so. Would > it? > > -- > Anshum Gupta > http://ai-cafe.blogspot.com > > > On Thu, Mar 10, 2011 at 3:12 PM, suman.holani wrote: > &g

RE: document object

2011-03-11 Thread suman.holani
iginal Message- From: suman.holani [mailto:suman.hol...@zapak.co.in] Sent: Friday, March 11, 2011 11:35 AM To: 'java-user@lucene.apache.org' Subject: RE: document object Hello Erick, Hits .length is 1800 Version is lucene 3.0.3 I need the entire result set . As I ll be fetching recor

lucid gaze

2011-03-15 Thread suman.holani
Hello, If Lucid gaze compatible to lucene 3.0.3 exist? Anyone has used lucid gaze for measuring /analyzing searching performance . How is it? Regards, Suman

growing segments issue in lucene

2011-09-28 Thread suman.holani
Hi , I am using lucene 3.0.3. It seems like either the lucene indexes are not getting optimized properly as the files created in lucene index dir is growing with every doc added Please let me know the way to restrict the files and segments created . merge factor is10 max merge docs is21

RE: growing segments issue in lucene

2011-09-28 Thread suman.holani
ng around with RAMDirectory? Anyway, you appear to just add docs to the file based index, so surely it will keep growing? You could try optimizing the file based index but that is unlikely to gain you a huge amount unless it holds deleted docs. -- Ian. On Wed, Sep 28, 2011 at 11:32 AM, suman.hola

RE: merge index

2011-10-09 Thread suman.holani
Hi janwen, Try reopening the index reader and make new instance of searcher . Regards, Suman -Original Message- From: janwen [mailto:tom.grade1...@163.com] Sent: Monday, October 10, 2011 7:34 AM To: java-user Subject: merge index HI: after i add new index directory to exsited dire