lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Faulkner, Jeffrey" <>
Subject UTF-8 indexing and searching
Date Fri, 01 Jul 2005 14:10:50 GMT
I'm trying to index and search html and jsp files that are saved using utf-8
encoding.  The pages are indexed on the file system using the
StandardAnalyzer.  The files can contain a mix of english, chinese,
japanese, etc. saved as utf-8.  Searches using english terms are successful
but none of the searches for the chinese or japanese characters are
successful.  I'm a little confused about dealing with different encodings to
begin with. I tried specifying the encoding as utf-8 when reading in the
files using an InputStream and also also converting the String retrieved
from a form submission using getBytes specifying utf-8 also without any
success.  I've heard the StandardAnalzyer isn't optimal at indexing these
other characters but I heard that it does provide some basic indexing
capability.  Is it possible that these characters are being indexed and
searched correctly but they just aren't being found because of the
limitations of the analyzer or do you think that the files are being indexed
or searched incorrectly due to some encoding issues?
Thanks for the input 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message