Re: Find out which field of document matched the query

2006-06-01 Thread Daniel Noll
Frank Kunemann wrote: Hi lucene users, just wanted to know if there is a simple way to find out which field(s) of a document matched the query. In our case we have different content fields and the user can choose whether he wants to search in all of them or just in one. To keep the index as smal

Re: lucene memory usage, caching...

2006-06-01 Thread Yonik Seeley
On 5/31/06, Heng Mei <[EMAIL PROTECTED]> wrote: Does Lucene do any caching of Document fields during a search? No... but it wouldn't be too difficult to make your own cache, or use Solr which does have a Document cache (among other types of caches). -Yonik http://incubator.apache.org/solr Solr

Re: Problems with Lucene

2006-06-01 Thread N Hira
Alberto, It might be helpful if you would provide the full stack-trace. We use Lucene with our web application like many other projects. I can assure you that there is no basic incompatibility, but you may indeed be experiencing something specific to your environment. -h Alberto Marqu�ff

Re: Inefficiency in MultiReader / MultiTermDocs.skipTo (non optimized indexes)

2006-06-01 Thread Yonik Seeley
On 5/31/06, Andrew Hudson <[EMAIL PROTECTED]> wrote: I tracked down the inefficiency to MultiTermDocs.skipTo where even in the comment it said the function was unoptimized, Yikes! That's pretty important given how BooleanScorer2 is implemented (use of skipTo almost exclusively). Could you ple

Job: search @ Technorati

2006-06-01 Thread Otis Gospodnetic
Hello, We (Technorati) are looking for good search/IR/NLP/Comp. Linguistics/Data Mining-type people. If you are interested, please email me your CV. Otis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Problems with Lucene

2006-06-01 Thread Erik Hatcher
Rest assured that Lucene has no incompatibilities with JSF or any other Java web technology. I don't have specific advice for you since I do not use JSF, but all Java web applications require dependent libraries be in WEB-INF/lib. Again, the error message you've shown has nothing that poi

RE: Removing brackets before indexing

2006-06-01 Thread Mile Rosu
Hello Otis, Thank you for the hint. I have made a custom analyzer which uses a custom tokenizer similar to CharTokenizer - it treats brackets as token characters, but removes them in the next() method. This is because I do not want to split the word when adding it to the index. It seems to work ok

setCommitLockTimeOut() and setWriteLockTimeOut()

2006-06-01 Thread Charles.Sanders
Could someone give me a short explanation of the IndexWriter methods setCommitLockTimeOut() and setWriteLockTimeOut() in Lucene 2.0 and how they affect indexing. Thanks, Charles

Ontologies in Lucene???

2006-06-01 Thread gobe hobona
Are there any plans to incorporate new advances in ontology-based information retrieval into Lucene? For example, Hobona et al. (2006) present a 3D portal that uses the WordNet linguistic ontology to search Z39.50 servers. Another successfull implementation of ontology-supported search is prese

Find out which field of document matched the query

2006-06-01 Thread Frank Kunemann
Hi lucene users, just wanted to know if there is a simple way to find out which field(s) of a document matched the query. In our case we have different content fields and the user can choose whether he wants to search in all of them or just in one. To keep the index as small as possible we don't s

Re: Problems with Lucene

2006-06-01 Thread Alberto Marquÿffffe9s
The code works with a Java class main(). But to the being executed from JSF this not saying to me that there are problems of mutual incompatibility when recommending to me Erik Hatcher <[EMAIL PROTECTED]> escribió: On Jun 1, 2006, at 4:29 AM, Alberto Marquÿe9s wrote: > That is truth but whe

Re: Problems with Lucene

2006-06-01 Thread Alberto Marquÿffffe9s
I cosay works with a Java class main(). But to the being executed from JSF this not saying to me that there are problems of mutual incompatibility when recommending to me Tapestry. Erik Hatcher <[EMAIL PROTECTED]> escribió: On Jun 1, 2006, at 4:29 AM, Alberto Marquÿe9s wrote: > That is trut

Re: Problems with Lucene

2006-06-01 Thread Erik Hatcher
On Jun 1, 2006, at 4:29 AM, Alberto Marquÿe9s wrote: That is truth but when executing from jsf it gives east error. I want to know if pués is some subject of mutual incompatibility from a class main works these sentences are the adapted ones to execute from an application Web? There i

Re: how to craete index with particular ID

2006-06-01 Thread Alexey Sorokin
First of all you must understand that there is two stage: creating index and searching by it. I tell you olny how to create index. To perform search you must do something like this: IndexSearcher isearcher = new IndexSearcher(directory); Query query = QueryParser.parse("text", "fieldname", analy

Re: Problems with Lucene

2006-06-01 Thread Alberto Marquÿffffe9s
That is truth but when executing from jsf it gives east error. I want to know if pués is some subject of mutual incompatibility from a class main works these sentences are the adapted ones to execute from an application Web? Erik Hatcher <[EMAIL PROTECTED]> escribió: This is not a Lucene issue..

Re: Getting all the matching documents for a search

2006-06-01 Thread Erik Hatcher
On Jun 1, 2006, at 3:49 AM, Chun Wei Ho wrote: I use Hits to search for and get documents matching a particular query, e.g.: Hits hits = indexSearcher.search(new TermQuery(new Term ("startswith","A"))); but it is not returning all the matching documents in the index. From experimentation it

Re: Problems with Lucene

2006-06-01 Thread Erik Hatcher
This is not a Lucene issue... the stack trace mentions nothing about Lucene. Erik On Jun 1, 2006, at 3:33 AM, Alberto Marquÿe9s wrote: Problems with Lucene executing from Web with jsf. I do not understand because perhaps Lucene cannot be used in applications Web? This is the

Getting all the matching documents for a search

2006-06-01 Thread Chun Wei Ho
Hi, I use Hits to search for and get documents matching a particular query, e.g.: Hits hits = indexSearcher.search(new TermQuery(new Term("startswith","A"))); but it is not returning all the matching documents in the index. From experimentation it appears to return about less than half the match

Problems with Lucene

2006-06-01 Thread Alberto Marquÿffffe9s
Problems with Lucene executing from Web with jsf. I do not understand because perhaps Lucene cannot be used in applications Web? This is the instruction that gives error: IndexSearcher oIndexSearcher = new IndexSearcher("C:\\opt\\index"); Query query = QueryParser.parse(sCadenaBusqueda

Hi Alexey : How to search "TITLE" field only

2006-06-01 Thread Amaresh Kumar Yadav
Hi Alexey, I want to search string into "TITLE" field only then how should add this field to doc. Regards.. Amaresh -Original Message- From: Alexey Sorokin [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 31, 2006 4:21 PM To: java-user@lucene.apache.org Subject: Re: how to craete index wi