lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Barbarelli" <mbarbare...@gmail.com>
Subject Fwd: Unable to retreive 2/13 field values
Date Tue, 27 Feb 2007 18:21:33 GMT
Hello.  I'm using Lucene.NET, but would like to pose the question here in
the Java group since I think the collective expertise here is still valid.
Hope you don't mind.

After indexing data from an Oracle DB using the standard analyzer, I am
using Luke (standardanalyzer) to query at the moment.  Everything works
great, except that for some reason, I'm unable to retrieve any values from
two of the thirteen fields I am indexing, per document.   The fields in
question are "VAT_reg" and "status_desc".  I can see that the data is there
in the index, and I have tried every possible query syntax to retrieve hits
with those values. Nothing seems to work.

            // indexing code

            Document doc = new Document();

            doc.Add(Field.Keyword("rec_id",entity_id.Trim()));
            doc.Add(Field.Text("company_name",entity_name.Trim()));
            doc.Add(Field.Text("VAT_reg",VAT_reg.Trim()));
            doc.Add(Field.Text("add_line1",add_line1.Trim()));
            doc.Add(Field.Text("add_line2",add_line2.Trim()));
            doc.Add(Field.Text("add_line3",add_line3.Trim()));
            doc.Add(Field.Text("add_line4",add_line4.Trim()));
            doc.Add(Field.Text("add_line5",add_line5.Trim()));
            doc.Add(Field.Text("add_line6",add_line6.Trim()));
            doc.Add(Field.Text("country_iso",country_iso.Trim()));
            doc.Add(Field.Text("status_desc",status_desc.Trim()));
            doc.Add(Field.Text("firstname",firstname.Trim()));
            doc.Add(Field.Text("lastname",lastname.Trim()));

            writer.AddDocument(doc);

Valid VAT_Reg values are:

GB821628930  (+VAT_reg:GB* doesn't work)
N/A
FR67421715731

Valid Status_desc values Are:

Live                 (+status_desc:Live doesn't work)
Refer To Buyer
In Progress

Any ideas as to why I cannot retrieve the info in these two fields?  Many
thanks in advance.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message