George, No, I didn't encounter an error of any kind. Here's the scenario in broad strokes.
1. Index Oracle DB using Lucene.NET, StandardAnalyzer 2. Open index with Luke, all fields appear to have been stored and are visible. 3. However, if I submit a query using either of the two fields I mentioned, no records are ever returned even if the query value is valid. For example, neither of the following worked in Luke. VAT_Reg:GB123xyz status_desc:Live Finally, the same queries work just fine when using and IndexSearcher built in .NET, launched via an aspx page. Thanks again for your help. I would be happy to provide any other details you might be interested in. Regards, Mike On 3/6/07, George Aroush <[EMAIL PROTECTED]> wrote:
Hi Michael, Are you saying Luke is giving you error trying to open an index which you created with Lucene.Net and you are able to open this index with Lucene.Net? This should not be the case as Lucene.Net index is compatible with Java Lucene and thus with Luke. Please let me know. Regards, -- George Aroush -----Original Message----- From: Michael Barbarelli [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 06, 2007 3:53 PM To: [email protected] Subject: Re: Cannot retrieve certain field vals with IndexSearcher. Thank you very much, George. When implementing a searcher in .NET, I had no problem retrieving the fields in question. Must have been a Luke incompatibility. On 2/28/07, George Aroush <[EMAIL PROTECTED]> wrote: > > Hi Michael, > > Use http://www.getopt.org/luke/ to examine your index so you can see > exactly what went into your index and diagnose it. > > Regards, > > -- George Aroush > > > -----Original Message----- > From: Michael Barbarelli [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 27, 2007 9:24 AM > To: [email protected] > Subject: Cannot retrieve certain field vals with IndexSearcher. > > Hello. I'm using Lucene.NET and am quite impressed with it so far, > but am using Luke (Java based, using 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. > > 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. > >
