: Search query is like this ttl:co-operative it returns more than 50 results, : but if i convert the query like this ttl:co-operat* it returns no result. : again i entered a query ttl:11-amino it returns some results, then changed : the above query into ttl:11-amino* it will return some more results than : previous query.
if you'd searched the FAQ for "prefix" you would have found this question... Are Wildcard, Prefix, and Fuzzy queries case sensitive? that may not seem like it relates to your problem, but if you read the answer... No, not by default. Unlike other types of Lucene queries, Wildcard, Prefix, and Fuzzy queries are not passed through the Analyzer, which is the component that performs operations such as stemming and lowercasing. The reason for skipping the Analyzer is that if you were searching for "dogs*" you would not want "dogs" first stemmed to "dog", since that would then match "dog*", which is not the intended query. These queries are case-insensitive anyway because QueryParser makes them lowercase. This behavior can be changed using the setLowercaseExpandedTerms(boolean) method. ...the key being that wildcard and prefix queries aren't analyzed, so if you are using an Analyzer that does something special with hyphens (like split on then perhaps) that would explain the behavior you are seeing. -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]