It certainly isn't intuitive to me. I would have expected the exact opposite (almost). Why do I get results in Luke but not when I use the API?
On Tue, Jun 26, 2012 at 12:48 PM, Prescott Nasser <[email protected]>wrote: > > Might also be some minor file format changes ( I have not had a chance to > closely examine them against your issue): > > http://lucene.apache.org/core/old_versioned_docs/versions/3_5_0/fileformats.html > > > ---------------------------------------- > > Date: Tue, 26 Jun 2012 11:31:25 -0700 > > Subject: Re: SPAM-HIGH: Disparity between API usage and Luke > > From: [email protected] > > To: [email protected] > > > > You appear to be using Luke 3.5 which per the information on the Luke > > homepage (http://code.google.com/p/luke/) uses Lucene 3.5 > > > > Since Lucene.Net is currently on 2.9.4 I wouldn't be surprised to see > > different behavior between the API and executing in Luke. > > > > If you use a version of Luke which more closely aligns with the version > of > > Lucene.Net (Luke 1.0.1 uses Lucene 3.0.1 which should be close enough > > since the 2.9.x releases were previews of the 3.0.x releases as I > > understood it) what behavior do you see? > > > > Hope this helps, > > > > Rob > > > > On 6/26/12 10:50 AM, "Rob Cecil" <[email protected]> wrote: > > > > >If I run a query against my index using QueryParser to query a field: > > > > > > var query = _parser.Parse("Id:BAUER*"); > > > var topDocs = searcher.Search(query, 10); > > > Assert.AreEqual(count, topDocs.TotalHits); > > > > > >I get 0 for my TotalHits, yet in Luke, the same query phrase yields 15 > > >results, what am I doing wrong? I use the StandardAnalyzer both to > > >create the index and to query. > > > > > >The field is defined as: > > > > > >new Field("Id", myObject.Id, Field.Store.YES, Field.Index.NOT_ANALYZED) > > > > > >and is a string field. The result set back from Luke looks like > > >(screencap): > > > > > >http://screencast.com/t/NooMK2Rf > > > > > >Thanks! > > > > > > > > > >
