RE: Problems indexing Japanese with CJKAnalyzer ... Or French wit h UTF-8 and MetaData

2004-07-16 Thread Jon Schuster
If you're specifying the correct encoding in HTMLDocument when you create an
InputStreamReader for the HTML file, and if you're specifying UTF8 as the
encoding for the InputStreamReader and OutputStreamWriter in
HTMLParser.getReader, I don't see how the meta tag data would have a
different encoding than the other content that gets indexed.

The stuff in the JDK docs about Properties being stored as 8859-1 applies
only when properties are saved or loaded from a stream using the
Properties.save and Properties.load methods. In Lucene, meta tag information
is stored in a Properties structure only while parsing and tokenizing.

Some strategically placed System.out.printlns should let you see if the meta
tag strings are what you think they are.

--Jon 

-Original Message-
From: Bruno Tirel [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 15, 2004 8:07 AM
To: 'Lucene Users List'
Subject: RE: Problems indexing Japanese with CJKAnalyzer ... Or French with
UTF-8 and MetaData


I don't think I understand correctly your proposal.
As a basis, I am using Demo3 with indexHTML, HTMLDocument and HTMLParser.
Inside HTML parser, I am calling getMetaTags (calling addMetaData) wich
return Properties object. My issue is coming fron this definition :
Properties are stored into ISO-8859-1 encoding, when all my data encodings
inside and outside are "UTF-8".
I am not successful in getting UTF-8 values from this Parser.GetMetaTags()
through any conversion.
These data are extracted from an HTML page, with UTF-8 encoding declared at
the beginning of the file.
I do not see how to call a request.setEncoding("UTF-8") : I need the Parser
to have knowledge of UTF-8 encoding... And it doesn't appear when using
Properties object.

Any feedback?

-Message d'origine-
De : Praveen Peddi [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 15 juillet 2004 15:12
À : Lucene Users List
Objet : Re: Problems indexing Japanese with CJKAnalyzer

If its a web application, you have to cal request.setEncoding("UTF-8")
before reading any parameters. Also make sure html page encoding is
specified as "UTF-8" in the metatag. most web app servers decode the request
paramaters in the system's default encoding algorithm. If u call above
method, I think it will solve ur problem.

Praveen
- Original Message -
From: "Bruno Tirel" <[EMAIL PROTECTED]>
To: "'Lucene Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, July 15, 2004 6:15 AM
Subject: RE: Problems indexing Japanese with CJKAnalyzer


Hi All,

I am also trying to localize everything for French application, using UTF-8
encoding. I have already applied what Jon described. I fully confirm his
recommandation for HTML Parser and HTML Document changes with UNICODE and
"UTF-8" encoding specification.

In my case, I have still one case not functional : using meta-data from HTML
document, as in demo3 example. Trying to convert to "UTF-8", or
"ISO-8859-1", it is still not correctly encoded when I check with Luke.
A word "Propriété" is seen either as "Propri?t?" with a square, or as
"Propriã©tã©".
My local codepage is Cp1252, so should be viewed as ISO-8859-1. Same result
when I use "local FileEncoding parameter.
All the other fields are correctly encoded into UTF-8, tokenized and
successfully searched through JSP page.

Is anybody already facing this issue? Any help available?
Best regards,

Bruno


-Message d'origine-
De : Jon Schuster [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 14 juillet 2004 22:51
À : 'Lucene Users List'
Objet : RE: Problems indexing Japanese with CJKAnalyzer

Hi all,

Thanks for the help on indexing Japanese documents. I eventually got things
working, and here's an update so that other folks might have an easier time
in similar situations.

The problem I had was indeed with the encoding, but it was more than just
the encoding on the initial creation of the HTMLParser (from the Lucene demo
package). In HTMLDocument, doing this:

InputStreamReader reader = new InputStreamReader( new
FileInputStream(f), "SJIS");
HTMLParser parser = new HTMLParser( reader );

creates the parser and feeds it Unicode from the original Shift-JIS encoding
document, but then when the document contents is fetched using this line:

Field fld = Field.Text("contents", parser.getReader() );

HTMLParser.getReader creates an InputStreamReader and OutputStreamWriter
using the default encoding, which in my case was Windows 1252 (essentially
Latin-1). That was bad.

In the HTMLParser.jj grammar file, adding an explicit encoding of "UTF8" on
both the Reader and Writer got things mostly working. The one missing piece
was in the "options" section of the HTMLParser.jj file. The original grammar
file generates an input character stream class that treats the input as a
stream of 1-byte characters. To have JavaCC generate a stream class that
handles double-byte characters, you need the option UNICODE_INPUT=true.

So, there were essentially three changes in two files:

HTMLParser.jj - add UNICODE_INPUT=true to options sec

RE: lucene 1.4 final src build error

2004-07-16 Thread juan dix
hmmm I finally got it to work, I simply deleted the environent classpath 
variable and it finally built okay using ant 1.6.2 and java sdk 1.4.2.

I tried then switching to java 1.3 and it gave me my original error I posted 
earlier.  Maybe the build.txt should be updated to reflect the requirements. 
I don't think java1.2 would work as written there.  thx zhang.

-juan

From: "juan dix" <[EMAIL PROTECTED]>
Reply-To: "Lucene Users List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: RE: lucene 1.4 final src build error
Date: Fri, 16 Jul 2004 13:30:24 -0700
yes i deleted the build directory which contains the outputted class files.

From: "Zhang, Lisheng" <[EMAIL PROTECTED]>
Reply-To: "Lucene Users List" <[EMAIL PROTECTED]>
To: "'Lucene Users List'" <[EMAIL PROTECTED]>
Subject: RE: lucene 1.4 final src build error
Date: Fri, 16 Jul 2004 13:04:14 -0700
Hi,
Did you do a complete cleanup before compiling
under JVM14x?
Regards, Lisheng
-Original Message-
From: juan dix [mailto:[EMAIL PROTECTED]
Sent: Friday, July 16, 2004 12:52 PM
To: [EMAIL PROTECTED]
Subject: RE: lucene 1.4 final src build error
thx but when installled java1.4 i am getting these errors now:
#
D:\lucene-1.4-final>java -version
java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
D:\lucene-1.4-final>ant
Buildfile: build.xml
init:
[mkdir] Created dir: D:\lucene-1.4-final\build
compile-core:
[mkdir] Created dir: D:\lucene-1.4-final\build\classes\java
[javac] Compiling 160 source files to
D:\lucene-1.4-final\build\classes\java
 [rmic] RMI Compiling 1 class to 
D:\lucene-1.4-final\build\classes\java
 [rmic] error: Invalid class file format:
D:\lucene-1.4-final\build\classes\
java\org\apache\lucene\search\RemoteSearchable.class, wrong version: 46,
expected 45


 [rmic] error: Class org.apache.lucene.search.RemoteSearchable not
found.

 [rmic] 2 errors

BUILD FAILED
D:\lucene-1.4-final\build.xml:145: Rmic failed; see the compiler error
output for details.
Total time: 19 seconds
D:\lucene-1.4-final>
##
Strange I never had a problem with building lucene1.3.  Please advise.
Thanks.
-juan
>From: "Zhang, Lisheng" <[EMAIL PROTECTED]>
>Reply-To: "Lucene Users List" <[EMAIL PROTECTED]>
>To: "'Lucene Users List'" <[EMAIL PROTECTED]>
>Subject: RE: lucene 1.4 final src build error Date: Fri, 16 Jul 2004
>11:13:31 -0700
>
>Hi,
>
>What JVM version did you have, I guess possibly
>yours is JVM1.3.x? From my experience I think
>lucene 1.4 can only be compiled under JVM1.4.x.
>
>Regards, Lisheng
>
>-Original Message-
>From: juan dix [mailto:[EMAIL PROTECTED]
>Sent: Friday, July 16, 2004 10:58 AM
>To: [EMAIL PROTECTED]
>Subject: lucene 1.4 final src build error
>
>
>Just trying to do a src build using ant on lucene 1.4 final.  and 
getting
>compile error for SortComparator.java.  Any ideas?
>
>#
>D:\lucene-1.4-final>ant
>Buildfile: build.xml
>
>init:
>[mkdir] Created dir: D:\lucene-1.4-final\build
>[mkdir] Created dir: D:\lucene-1.4-final\dist
>
>compile-core:
>[mkdir] Created dir: D:\lucene-1.4-final\build\classes\java
>[javac] Compiling 160 source files to
>D:\lucene-1.4-final\build\classes\java
>
>[javac]
>D:\lucene-1.4-final\src\java\org\apache\lucene\search\SortComparator
>.java:37: unreported exception java.io.IOException; must be caught or
>declared to be thrown
>[javac]   protected Comparable[] cachedValues =
>FieldCache.DEFAULT.getCustom (reader, field, SortComparator.this);
>[javac]  
 ^
>[javac] 1 error
>
>BUILD FAILED
>D:\lucene-1.4-final\build.xml:140: Compile failed; see the compiler 
error
>output
>for details.
>
>Total time: 25 seconds
>
>###
>
>should I just modify my own try and catch to the original src?  thanks.
>
>-juan
>
>_
>Don't just search. Find. Check out the new MSN Search!
>http://search.msn.click-url.com/go/onm00200636ave/direct/01/
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: lucene 1.4 final src build error

2004-07-16 Thread juan dix
yes i deleted the build directory which contains the outputted class files.

From: "Zhang, Lisheng" <[EMAIL PROTECTED]>
Reply-To: "Lucene Users List" <[EMAIL PROTECTED]>
To: "'Lucene Users List'" <[EMAIL PROTECTED]>
Subject: RE: lucene 1.4 final src build error
Date: Fri, 16 Jul 2004 13:04:14 -0700
Hi,
Did you do a complete cleanup before compiling
under JVM14x?
Regards, Lisheng
-Original Message-
From: juan dix [mailto:[EMAIL PROTECTED]
Sent: Friday, July 16, 2004 12:52 PM
To: [EMAIL PROTECTED]
Subject: RE: lucene 1.4 final src build error
thx but when installled java1.4 i am getting these errors now:
#
D:\lucene-1.4-final>java -version
java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
D:\lucene-1.4-final>ant
Buildfile: build.xml
init:
[mkdir] Created dir: D:\lucene-1.4-final\build
compile-core:
[mkdir] Created dir: D:\lucene-1.4-final\build\classes\java
[javac] Compiling 160 source files to
D:\lucene-1.4-final\build\classes\java
 [rmic] RMI Compiling 1 class to 
D:\lucene-1.4-final\build\classes\java
 [rmic] error: Invalid class file format:
D:\lucene-1.4-final\build\classes\
java\org\apache\lucene\search\RemoteSearchable.class, wrong version: 46,
expected 45


 [rmic] error: Class org.apache.lucene.search.RemoteSearchable not
found.

 [rmic] 2 errors

BUILD FAILED
D:\lucene-1.4-final\build.xml:145: Rmic failed; see the compiler error
output for details.
Total time: 19 seconds
D:\lucene-1.4-final>
##
Strange I never had a problem with building lucene1.3.  Please advise.
Thanks.
-juan
>From: "Zhang, Lisheng" <[EMAIL PROTECTED]>
>Reply-To: "Lucene Users List" <[EMAIL PROTECTED]>
>To: "'Lucene Users List'" <[EMAIL PROTECTED]>
>Subject: RE: lucene 1.4 final src build error Date: Fri, 16 Jul 2004
>11:13:31 -0700
>
>Hi,
>
>What JVM version did you have, I guess possibly
>yours is JVM1.3.x? From my experience I think
>lucene 1.4 can only be compiled under JVM1.4.x.
>
>Regards, Lisheng
>
>-Original Message-
>From: juan dix [mailto:[EMAIL PROTECTED]
>Sent: Friday, July 16, 2004 10:58 AM
>To: [EMAIL PROTECTED]
>Subject: lucene 1.4 final src build error
>
>
>Just trying to do a src build using ant on lucene 1.4 final.  and getting
>compile error for SortComparator.java.  Any ideas?
>
>#
>D:\lucene-1.4-final>ant
>Buildfile: build.xml
>
>init:
>[mkdir] Created dir: D:\lucene-1.4-final\build
>[mkdir] Created dir: D:\lucene-1.4-final\dist
>
>compile-core:
>[mkdir] Created dir: D:\lucene-1.4-final\build\classes\java
>[javac] Compiling 160 source files to
>D:\lucene-1.4-final\build\classes\java
>
>[javac]
>D:\lucene-1.4-final\src\java\org\apache\lucene\search\SortComparator
>.java:37: unreported exception java.io.IOException; must be caught or
>declared to be thrown
>[javac]   protected Comparable[] cachedValues =
>FieldCache.DEFAULT.getCustom (reader, field, SortComparator.this);
>[javac]   
^
>[javac] 1 error
>
>BUILD FAILED
>D:\lucene-1.4-final\build.xml:140: Compile failed; see the compiler error
>output
>for details.
>
>Total time: 25 seconds
>
>###
>
>should I just modify my own try and catch to the original src?  thanks.
>
>-juan
>
>_
>Don't just search. Find. Check out the new MSN Search!
>http://search.msn.click-url.com/go/onm00200636ave/direct/01/
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Discover the best of the best at MSN Luxury Living. http://lexus.msn.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: lucene 1.4 final src build error

2004-07-16 Thread Zhang, Lisheng
Hi,

Did you do a complete cleanup before compiling
under JVM14x?

Regards, Lisheng

-Original Message-
From: juan dix [mailto:[EMAIL PROTECTED]
Sent: Friday, July 16, 2004 12:52 PM
To: [EMAIL PROTECTED]
Subject: RE: lucene 1.4 final src build error


thx but when installled java1.4 i am getting these errors now:

#

D:\lucene-1.4-final>java -version
java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)

D:\lucene-1.4-final>ant
Buildfile: build.xml

init:
[mkdir] Created dir: D:\lucene-1.4-final\build

compile-core:
[mkdir] Created dir: D:\lucene-1.4-final\build\classes\java
[javac] Compiling 160 source files to 
D:\lucene-1.4-final\build\classes\java

 [rmic] RMI Compiling 1 class to D:\lucene-1.4-final\build\classes\java
 [rmic] error: Invalid class file format: 
D:\lucene-1.4-final\build\classes\
java\org\apache\lucene\search\RemoteSearchable.class, wrong version: 46, 
expected 45



 [rmic] error: Class org.apache.lucene.search.RemoteSearchable not 
found.



 [rmic] 2 errors



BUILD FAILED
D:\lucene-1.4-final\build.xml:145: Rmic failed; see the compiler error 
output for details.

Total time: 19 seconds
D:\lucene-1.4-final>
##

Strange I never had a problem with building lucene1.3.  Please advise.  
Thanks.

-juan


>From: "Zhang, Lisheng" <[EMAIL PROTECTED]>
>Reply-To: "Lucene Users List" <[EMAIL PROTECTED]>
>To: "'Lucene Users List'" <[EMAIL PROTECTED]>
>Subject: RE: lucene 1.4 final src build error Date: Fri, 16 Jul 2004 
>11:13:31 -0700
>
>Hi,
>
>What JVM version did you have, I guess possibly
>yours is JVM1.3.x? From my experience I think
>lucene 1.4 can only be compiled under JVM1.4.x.
>
>Regards, Lisheng
>
>-Original Message-
>From: juan dix [mailto:[EMAIL PROTECTED]
>Sent: Friday, July 16, 2004 10:58 AM
>To: [EMAIL PROTECTED]
>Subject: lucene 1.4 final src build error
>
>
>Just trying to do a src build using ant on lucene 1.4 final.  and getting
>compile error for SortComparator.java.  Any ideas?
>
>#
>D:\lucene-1.4-final>ant
>Buildfile: build.xml
>
>init:
>[mkdir] Created dir: D:\lucene-1.4-final\build
>[mkdir] Created dir: D:\lucene-1.4-final\dist
>
>compile-core:
>[mkdir] Created dir: D:\lucene-1.4-final\build\classes\java
>[javac] Compiling 160 source files to
>D:\lucene-1.4-final\build\classes\java
>
>[javac]
>D:\lucene-1.4-final\src\java\org\apache\lucene\search\SortComparator
>.java:37: unreported exception java.io.IOException; must be caught or
>declared to be thrown
>[javac]   protected Comparable[] cachedValues =
>FieldCache.DEFAULT.getCustom (reader, field, SortComparator.this);
>[javac]   ^
>[javac] 1 error
>
>BUILD FAILED
>D:\lucene-1.4-final\build.xml:140: Compile failed; see the compiler error
>output
>for details.
>
>Total time: 25 seconds
>
>###
>
>should I just modify my own try and catch to the original src?  thanks.
>
>-juan
>
>_
>Don't just search. Find. Check out the new MSN Search!
>http://search.msn.click-url.com/go/onm00200636ave/direct/01/
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: lucene 1.4 final src build error

2004-07-16 Thread juan dix
thx but when installled java1.4 i am getting these errors now:
#
D:\lucene-1.4-final>java -version
java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
D:\lucene-1.4-final>ant
Buildfile: build.xml
init:
   [mkdir] Created dir: D:\lucene-1.4-final\build
compile-core:
   [mkdir] Created dir: D:\lucene-1.4-final\build\classes\java
   [javac] Compiling 160 source files to 
D:\lucene-1.4-final\build\classes\java

[rmic] RMI Compiling 1 class to D:\lucene-1.4-final\build\classes\java
[rmic] error: Invalid class file format: 
D:\lucene-1.4-final\build\classes\
java\org\apache\lucene\search\RemoteSearchable.class, wrong version: 46, 
expected 45


[rmic] error: Class org.apache.lucene.search.RemoteSearchable not 
found.


[rmic] 2 errors

BUILD FAILED
D:\lucene-1.4-final\build.xml:145: Rmic failed; see the compiler error 
output for details.

Total time: 19 seconds
D:\lucene-1.4-final>
##
Strange I never had a problem with building lucene1.3.  Please advise.  
Thanks.

-juan

From: "Zhang, Lisheng" <[EMAIL PROTECTED]>
Reply-To: "Lucene Users List" <[EMAIL PROTECTED]>
To: "'Lucene Users List'" <[EMAIL PROTECTED]>
Subject: RE: lucene 1.4 final src build error Date: Fri, 16 Jul 2004 
11:13:31 -0700

Hi,
What JVM version did you have, I guess possibly
yours is JVM1.3.x? From my experience I think
lucene 1.4 can only be compiled under JVM1.4.x.
Regards, Lisheng
-Original Message-
From: juan dix [mailto:[EMAIL PROTECTED]
Sent: Friday, July 16, 2004 10:58 AM
To: [EMAIL PROTECTED]
Subject: lucene 1.4 final src build error
Just trying to do a src build using ant on lucene 1.4 final.  and getting
compile error for SortComparator.java.  Any ideas?
#
D:\lucene-1.4-final>ant
Buildfile: build.xml
init:
   [mkdir] Created dir: D:\lucene-1.4-final\build
   [mkdir] Created dir: D:\lucene-1.4-final\dist
compile-core:
   [mkdir] Created dir: D:\lucene-1.4-final\build\classes\java
   [javac] Compiling 160 source files to
D:\lucene-1.4-final\build\classes\java
   [javac]
D:\lucene-1.4-final\src\java\org\apache\lucene\search\SortComparator
.java:37: unreported exception java.io.IOException; must be caught or
declared to be thrown
   [javac]   protected Comparable[] cachedValues =
FieldCache.DEFAULT.getCustom (reader, field, SortComparator.this);
   [javac]   ^
   [javac] 1 error
BUILD FAILED
D:\lucene-1.4-final\build.xml:140: Compile failed; see the compiler error
output
for details.
Total time: 25 seconds
###
should I just modify my own try and catch to the original src?  thanks.
-juan
_
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: lucene 1.4 final src build error

2004-07-16 Thread Zhang, Lisheng
Hi,

What JVM version did you have, I guess possibly
yours is JVM1.3.x? From my experience I think 
lucene 1.4 can only be compiled under JVM1.4.x.

Regards, Lisheng

-Original Message-
From: juan dix [mailto:[EMAIL PROTECTED]
Sent: Friday, July 16, 2004 10:58 AM
To: [EMAIL PROTECTED]
Subject: lucene 1.4 final src build error 


Just trying to do a src build using ant on lucene 1.4 final.  and getting 
compile error for SortComparator.java.  Any ideas?

#
D:\lucene-1.4-final>ant
Buildfile: build.xml

init:
   [mkdir] Created dir: D:\lucene-1.4-final\build
   [mkdir] Created dir: D:\lucene-1.4-final\dist

compile-core:
   [mkdir] Created dir: D:\lucene-1.4-final\build\classes\java
   [javac] Compiling 160 source files to 
D:\lucene-1.4-final\build\classes\java

   [javac] 
D:\lucene-1.4-final\src\java\org\apache\lucene\search\SortComparator
.java:37: unreported exception java.io.IOException; must be caught or 
declared to be thrown
   [javac]   protected Comparable[] cachedValues = 
FieldCache.DEFAULT.getCustom (reader, field, SortComparator.this);
   [javac]   ^
   [javac] 1 error

BUILD FAILED
D:\lucene-1.4-final\build.xml:140: Compile failed; see the compiler error 
output
for details.

Total time: 25 seconds

###

should I just modify my own try and catch to the original src?  thanks.

-juan

_
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



lucene 1.4 final src build error

2004-07-16 Thread juan dix
Just trying to do a src build using ant on lucene 1.4 final.  and getting 
compile error for SortComparator.java.  Any ideas?

#
D:\lucene-1.4-final>ant
Buildfile: build.xml
init:
  [mkdir] Created dir: D:\lucene-1.4-final\build
  [mkdir] Created dir: D:\lucene-1.4-final\dist
compile-core:
  [mkdir] Created dir: D:\lucene-1.4-final\build\classes\java
  [javac] Compiling 160 source files to 
D:\lucene-1.4-final\build\classes\java

  [javac] 
D:\lucene-1.4-final\src\java\org\apache\lucene\search\SortComparator
.java:37: unreported exception java.io.IOException; must be caught or 
declared to be thrown
  [javac]   protected Comparable[] cachedValues = 
FieldCache.DEFAULT.getCustom (reader, field, SortComparator.this);
  [javac]   ^
  [javac] 1 error

BUILD FAILED
D:\lucene-1.4-final\build.xml:140: Compile failed; see the compiler error 
output
for details.

Total time: 25 seconds
###
should I just modify my own try and catch to the original src?  thanks.
-juan
_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Lock file problem

2004-07-16 Thread Luis Muniz
Are you already using an IndexWriter?
IndexWriter creates a lock i think. And IndexReader.delete wants to 
abtain a a lock also.
you have to perform your deletes before you use the indexWriter to add 
documents to the index.

I hope this helps
Steve Rajavuori wrote:
I'm having a problem with Lucene obtaining a lock file on Windows. Running
1.4 RC3, I see the error below repeatedly. I try stopping my process,
deleting the file, then restarting. The error just occurs again every time.
java.io.IOException: Lock obtain timed out:
[EMAIL PROTECTED]:\WINNT\TEMP\lucene-4bf302dec76f27bff81fc3dd3118abbb-write.lock
at org.apache.lucene.store.Lock.obtain(Lock.java:58)
at
org.apache.lucene.index.IndexReader.aquireWriteLock(IndexReader.java:408)
at org.apache.lucene.index.IndexReader.delete(IndexReader.java:432)
at org.apache.lucene.index.IndexReader.delete(IndexReader.java:454)
ANyone know the cause of this?
Steve Rajavuori
O'Pin Systems
2600 Eagan Woods Dr., Suite 400
Eagan, MN  55121
651-994-6556
[EMAIL PROTECTED] 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Lock file problem

2004-07-16 Thread Steve Rajavuori
I'm having a problem with Lucene obtaining a lock file on Windows. Running
1.4 RC3, I see the error below repeatedly. I try stopping my process,
deleting the file, then restarting. The error just occurs again every time.

java.io.IOException: Lock obtain timed out:
[EMAIL PROTECTED]:\WINNT\TEMP\lucene-4bf302dec76f27bff81fc3dd3118abbb-write.lock
at org.apache.lucene.store.Lock.obtain(Lock.java:58)
at
org.apache.lucene.index.IndexReader.aquireWriteLock(IndexReader.java:408)
at org.apache.lucene.index.IndexReader.delete(IndexReader.java:432)
at org.apache.lucene.index.IndexReader.delete(IndexReader.java:454)

ANyone know the cause of this?

Steve Rajavuori
O'Pin Systems
2600 Eagan Woods Dr., Suite 400
Eagan, MN  55121
651-994-6556
[EMAIL PROTECTED] 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]