Adding fields to an existing index fails?

2006-07-14 Thread JMA
I have an existing index. I want to add new fields to each document in the index. Ideally I would do it in-place on the same index, but let's assume I can create a new, separate index. Easy I thought: IndexReader reader = IndexReader.open(originalIndex); int maxdocs = reader.maxDoc(); Inde

Re: Adding fields to an existing index fails?

2006-07-14 Thread karl wettin
On Fri, 2006-07-14 at 04:09 -0400, JMA wrote: > I have an existing index. I want to add new fields to each document in the > index. >Document d = reader.document(i); > >Field f = new Field("extraField", text_for_extra_field, true, true, true

Re: [jira] Created: (LUCENE-626) Adaptive, user query session analyzing spell checker.

2006-07-14 Thread karl wettin
On Thu, 2006-07-13 at 09:20 +, Karl Wettin (JIRA) wrote: > Adaptive, user query session analyzing spell checker. I have a database with 3 million+ real user queries (session id, timestamp, query and hits) if anyone is interested in fooling around with the code. And if there is an interest, I m

Re: [jira] Commented: (LUCENE-565) Supporting deleteDocuments in IndexWriter (Code and Performance Results Provided)

2006-07-14 Thread Yonik Seeley
On 7/14/06, Ning Li <[EMAIL PROTECTED]> wrote: I have viewed "delete by term" (which is supported by IndexReader and NewIndexModifier) as a kind of "delete by query", not "delete by id". If I replace Term in DeleteTerm with Query (or query string), and re-define applyDeletesSelectively() as foll

[jira] Commented: (LUCENE-627) highlighter problems with overlapping tokens

2006-07-14 Thread Yonik Seeley (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-627?page=comments#action_12421128 ] Yonik Seeley commented on LUCENE-627: - Right... I'm not sure the highlighter should be expected to handle all cases, but WordDelimiterFilter doesn't seem *that

[jira] Commented: (LUCENE-627) highlighter problems with overlapping tokens

2006-07-14 Thread Yonik Seeley (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-627?page=comments#action_12421162 ] Yonik Seeley commented on LUCENE-627: - I'm going with the OrderFixer approach for now... if startOffsets are equal, but endOffsets are not, does it matter whic

Re: Committers: IntelliJ IDEA for open source developers

2006-07-14 Thread Brian Goetz
Erik; I see we are qualified to get free IntelliJ licenses -- how do we actually do that? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Committers: IntelliJ IDEA for open source developers

2006-07-14 Thread Yonik Seeley
Hi Brian... I'm an IntelliJ user, and I got my license recently. They have a special ASF page: http://www.jetbrains.com/idea/opensource/asf.html -Yonik http://incubator.apache.org/solr Solr, the open-source Lucene search server On 7/14/06, Brian Goetz <[EMAIL PROTECTED]> wrote: Erik; I see we

[jira] Updated: (LUCENE-627) highlighter problems with overlapping tokens

2006-07-14 Thread Yonik Seeley (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-627?page=all ] Yonik Seeley updated LUCENE-627: Attachment: highlight_overlap.diff Here is a patch that makes the tests work after tokens are re-ordered. I basically keep track of the start and end offsets of

index local file system by lucene

2006-07-14 Thread Feng Ji
Hi there, I wonder how difficult to implement lucene to index the local file system, such as, word file or pdf file. I know conceptually, it should work with lucene. Any existing package does the similar effort? thanks, Feng Ji

Re: [jira] Commented: (LUCENE-565) Supporting deleteDocuments in IndexWriter (Code and Performance Results Provided)

2006-07-14 Thread Ning Li
Hey, you're moving the goalposts ;-) You proposed a specific patch, and it certtainly doesn't have support for delete-by-query. The patch makes IndexWriter support delete-by-term, which is what IndexReader supports. Granted, delete-by-term is not as general as delete-by-query so you don't have t