Re: Determine whether a MatchAllQuery or a Query with atleast one Term

2015-11-27 Thread Michael Wilkowski
Instanceof? MW Sent from Mi phone On 28 Nov 2015 06:57, "Sandeep Khanzode" wrote: > Hi, > I have a question. > In my program, I need to check whether the input query is a MatchAll Query > that contains no terms, or a Query (any variant) that has at least one > term. For typical Term queries, thi

Determine whether a MatchAllQuery or a Query with atleast one Term

2015-11-27 Thread Sandeep Khanzode
Hi, I have a question. In my program, I need to check whether the input query is a MatchAll Query that contains no terms, or a Query (any variant) that has at least one term. For typical Term queries, this seems reasonable to be done with Query.extractTerms(Set<> terms) which gives the list of t

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 wildcard

How to Index (add Field) the word position from text file into Indexing file Using Lucene

2015-11-27 Thread Muhammad Adnan
Hi, i am new in lucene environment and lean from web tutorial http://www.tutorialspoint.com/lucene/lucene_first_application.htm. 1- Indexer.java class is used to index the raw data so that we can make it searchable using lucene library. 2- LuceneConstants.java class is used to provide various cons