On 9/18/2015 5:53 PM, Mark Fenbers wrote: > Using the browser interface to run a query on my indexed data, > specifying "q=logtext:*" gives me all 9800+ documents indexed -- as > expected. But if I specify something like "q=logtext:Sunday", then I > get zero results even though ~1000 documents contain the word Sunday. > So I'm puzzled as to why this is not working for specific words.
The "field:*" syntax is something you should not get in the habit of using. It is a wildcard search. What this does under the covers is looks up all the possible terms in that field across the entire index, and constructs a Lucene query that actually includes all those terms. If you execute a search like this on a field that has millions or billions of terms, Solr will find them all. It will use a ton of memory and be quite slow. A good and performant syntax for "all documents where field has a value" is a range query: field:[* TO *] For the problem with "Sunday": What fieldType is used for "logtext"? We'll also need the full definition of that fieldType, and an example of the full text indexed into that field for a document that should match, but doesn't. You should also check the "debugQuery" box on the Query tab, and give us the "rawquerystring" and "parsedquery" values from the debug. Thanks, Shawn