Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 68548 invoked from network); 8 Nov 2004 10:01:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Nov 2004 10:01:51 -0000 Received: (qmail 10989 invoked by uid 500); 8 Nov 2004 10:01:43 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 10958 invoked by uid 500); 8 Nov 2004 10:01:42 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 10943 invoked by uid 99); 8 Nov 2004 10:01:42 -0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=HTML_20_30,HTML_MESSAGE,HTML_TITLE_EMPTY X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [217.160.91.29] (HELO p15112568.pureserver.info) (217.160.91.29) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 08 Nov 2004 02:01:42 -0800 Received: from [192.168.10.103] (ppp-62-245-161-176.mnet-online.de [62.245.161.176]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by p15112568.pureserver.info (Postfix) with ESMTP id 5015314010F for ; Mon, 8 Nov 2004 11:01:34 +0100 (CET) Message-ID: <418F43F1.1080102@intrafind.de> Date: Mon, 08 Nov 2004 11:01:21 +0100 From: Bernhard Messer User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: Lucene Users List Subject: Re: Transaction in Lucene References: <20041107140941.32709.qmail@web12704.mail.yahoo.com> In-Reply-To: <20041107140941.32709.qmail@web12704.mail.yahoo.com> Content-Type: multipart/alternative; boundary="------------030902080302050800010400" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --------------030902080302050800010400 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit The message "No tvx file" can appear, if you have term vectors enabled during index and the documents you are adding have empty fields. As an example, if you try to index html documents, where many of them don't have a valid html title, the message will raise up. Looking at the term vector relevant code, this is nothing you have to worry about, it is just a status message. Otis is right, it is planned for future releases to avoid System.out.println() statements within lucene. regards Bernhard Otis Gospodnetic schrieb: >I'm not sure about the tvx error, but I think I recall somebody >changing some code around it a month or two ago. I also believe >System.out.println is on the TODO list for elimination. > >Otis > >--- commandor wrote: > > > >>Hello, >> >>I came across the following problem with "No tvx file". >> >>How could I manage to get it? >>I like to have transaction processes in Lucene. >>After my reading dev-lucene and user-lucene lists and analysing what >>people suggested >>I made up my own. >> >>The problem in my case is that I had to make several changes and only >>than make commit. >>That's why I did the following: >> >>1. Turn off Lucene lock (setting the corresponding system variable = >>false) >> >>2. Start the loop (from the first document to the last one to change >>in the index) >> >>2.1. Open IndexReader >>2.2. Get a document by its id >>2.3. Store it as local variable >>2.4. IndexReader.delete(document id) >>2.5. IndexReader.close() >>2.6. Merge new Terms (changes) and old ones in the document I >>retrieved >>2.6. Open IndexWriter >>2.7. Add a new made document >> >>3. end of loop >> >>4. Waiting for other action ends in my programm I close IndexWriter. >> >>The Result: >>Everything works fine but I had "No tvx file" >>I really worried about it cause I read what for tvx file... >> >>Might anybody explain me what I did wrong? >> >>In spite of your answer I did like the following: the way of logging >>messages >> >>This message appeared with the help of System.out.println() >> >>Investigating the code of Lucene I found a lot of places of using >>System.out >> >>I guess it is not a very good solution espessially in so beautiful >>search/indexing API. >>I guess Lucene must have a normal log to write its messages. >> >>Thanks in advance... >> >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org >>For additional commands, e-mail: lucene-user-help@jakarta.apache.org >> >> >> >> > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: lucene-user-help@jakarta.apache.org > > > --------------030902080302050800010400--