Re: Wildcard Terms and total word or phrase count

2015-11-29 Thread Jack Krupansky
You didn't post your code that creates the index. Make sure you are using a tokenized TextField rather than a single-token StringField. -- Jack Krupansky On Fri, Nov 27, 2015 at 4:06 PM, Kunzman, Douglas * < douglas.kunz...@fda.hhs.gov> wrote: > Hi - > > This is my first Lucene project, my

Re: Wildcard Terms and total word or phrase count

2015-11-29 Thread Michael Wilkowski
It is because your index does not contain term quar* and this statistics function is not a query (you have to pass exact form of the term). To count terms that meet search criteria you may run search query with custom collector and count results. Or use normal search query returning TopDocs and

RE: Wildcard Terms and total word or phrase count

2015-11-29 Thread Kunzman, Douglas *
-Original Message- From: Michael Wilkowski [mailto:m...@silenteight.com] Sent: Sunday, November 29, 2015 3:38 AM To: java-user@lucene.apache.org Subject: Re: Wildcard Terms and total word or phrase count It is because your index does not contain term quar* and this statistics function

RE: Wildcard Terms and total word or phrase count

2015-11-29 Thread Kunzman, Douglas *
: Sunday, November 29, 2015 12:18 PM To: java-user@lucene.apache.org Subject: Re: Wildcard Terms and total word or phrase count You didn't post your code that creates the index. Make sure you are using a tokenized TextField rather than a single-token StringField. -- Jack Krupansky On Fri, Nov 27

Re: Wildcard Terms and total word or phrase count

2015-11-29 Thread Michael Wilkowski
.com] > Sent: Sunday, November 29, 2015 12:18 PM > To: java-user@lucene.apache.org > Subject: Re: Wildcard Terms and total word or phrase count > > You didn't post your code that creates the index. Make sure you are using a > tokenized TextField rather than a single-token StringField.

Wildcard Terms and total word or phrase count

2015-11-27 Thread Kunzman, Douglas *
Hi - This is my first Lucene project, my other search projects have used Solr. I would like to find the total number of WildCard terms in a set of documents with 0-N matches per document. I would prefer not have to open each document where a match is found. I need to be able to support