Finding out which field caused the search hit

2007-09-10 Thread makkhar
This question has been asked numerous times here. But the answer has never been satisfactory. Can someone answer it full and final, please ? If you get back a document as a search hit. How do you find out which field in it matched ? Just the position of the field is sufficient ! -thanks --

Search performance question

2007-09-06 Thread makkhar
Hi, I have an index which contains more than 20K documents. Each document has the following structure : field : ID (Index and store) typical value - 1000 field : parameterName(index and store) typical value - /mcp/data/parent1/parent2/child1/child2/status

Getting only the Ids, not the whole documents.

2007-08-02 Thread makkhar
Hi all, Can I get just a list of document Ids given a search criteria ? To elaborate here is my situation: I store 2 contracts in the file system index each with some parameterName and Value. Given a search criterion - (paramValue='draft'). I need to get just an ArrayList of Strings

RE: Getting only the Ids, not the whole documents.

2007-08-02 Thread makkhar
the contractId. For all other fields, set the store flag to false while indexing. You can now safely retrieve the value of this contractId field based on your search results. Regards, kapilChhabra -Original Message- From: makkhar [mailto:[EMAIL PROTECTED] Sent: Thursday

Which field matched ?

2007-07-25 Thread makkhar
This problem has been baffling me since quite some time now and has no perfect solution in the forum ! I have 10 documents, each with 10 fields with parameterName and parameterValue. Now, When i search for some term and I get 5 hits, how do I find out which paramName-Value pair matched ? I am

Re: Which field matched ?

2007-07-25 Thread makkhar
Currently, we use regular expression pattern matching to get hold of which field matched. Again a pathetic solution since we have to agree upon the subset of the lucene search and pattern matching. We cannot use Boolean queries etc in this case. makkhar wrote: This problem has been

Finding out which field matched for a query

2007-05-06 Thread makkhar
Here's what is going wrong for me : I have 10 documents, each with 10 fields with parameterName and parameterValue. Now, When i search for some term and I get 5 hits, how do I find out which paramName-Value pair matched ? Very simple a problem, but I could find no information on the forum for

Re: Finding out which field matched for a query

2007-05-06 Thread makkhar
. But highlighting is a very very heavy operation for wildcards. We work on really large datasets, Hence we cannot use this approach. Any other ideas ? Thanks Daniel Noll-3 wrote: On Monday 07 May 2007 06:19:47 makkhar wrote: Here's what is going wrong for me : I have 10 documents, each with 10