Return-Path: X-Original-To: apmail-lucene-lucene-net-user-archive@www.apache.org Delivered-To: apmail-lucene-lucene-net-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 788F19B41 for ; Tue, 26 Jun 2012 17:51:47 +0000 (UTC) Received: (qmail 74927 invoked by uid 500); 26 Jun 2012 17:51:47 -0000 Delivered-To: apmail-lucene-lucene-net-user-archive@lucene.apache.org Received: (qmail 74896 invoked by uid 500); 26 Jun 2012 17:51:47 -0000 Mailing-List: contact lucene-net-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucene-net-user@lucene.apache.org Delivered-To: mailing list lucene-net-user@lucene.apache.org Received: (qmail 74888 invoked by uid 99); 26 Jun 2012 17:51:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jun 2012 17:51:47 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,HTML_OBFUSCATE_05_10,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rob.cecil@gmail.com designates 209.85.210.48 as permitted sender) Received: from [209.85.210.48] (HELO mail-pz0-f48.google.com) (209.85.210.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jun 2012 17:51:40 +0000 Received: by dadz8 with SMTP id z8so249037dad.35 for ; Tue, 26 Jun 2012 10:51:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=LraMmRDGg1987SGUv23KY2hhXRIVQhwyfZPmo3XLCWM=; b=mVo2jDxT1AzIvtEoLmPskzaSnsGUNnEWp3sz8S+XjMFCI27qE6O6OYxHG33mABe4e5 sxi8epKSn+jwqpk56BDAd2tVS1/q8XNKlHuzXFyCai2ebcKOjobKfp8QRXiA4KTD4Rt0 jPIgPuu2bpaKLfPmRvFc6cG5jSOfMd4nydBM3YLxkxAUvDYpvx6RkAHRsPf+3niqzWWo YTcAyaESJq0/sdFuvVtooJ+4wb6j6XqNkuL5Y7c6FgzNG3j9QOtWKXaHvEjH2mpnbIWP EbkoAVLqs63M52OZuagUNTbxScjxtXWIPh3PKZ/BlH6E/S5ZmW2XNVyiXYNCerP+J1Z7 PXbQ== Received: by 10.68.231.229 with SMTP id tj5mr54404900pbc.39.1340733079729; Tue, 26 Jun 2012 10:51:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.168.18 with HTTP; Tue, 26 Jun 2012 10:50:59 -0700 (PDT) From: Rob Cecil Date: Tue, 26 Jun 2012 11:50:59 -0600 Message-ID: Subject: Disparity between API usage and Luke To: lucene-net-user@lucene.apache.org Content-Type: multipart/alternative; boundary=047d7b33c65ef4b59904c363beab --047d7b33c65ef4b59904c363beab Content-Type: text/plain; charset=ISO-8859-1 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! --047d7b33c65ef4b59904c363beab--