Semi-hard-coded.
In QueryParserBase.java:
protected Query getWildcardQuery(String field, String termStr) throws
ParseException
{
if ("*".equals(field)) {
if ("*".equals(termStr)) return newMatchAllDocsQuery();
Otherwise, if you try *:x, "*" is an undefined field.
-- Jack Krupansky
-----Original Message-----
From: Alexandre Rafalovitch
Sent: Tuesday, January 15, 2013 7:06 PM
To: solr-user@lucene.apache.org
Subject: Is *:* the only possible search with * on the left-hand-side?
Hello,
Is *:* hardcoded somewhere as a unique special pattern or is there actually
a class of queries with *:'something'?
I tried searching for it, but I suspect this is not the patterns most
tokenizers will actually index as searchable. :-)
Regards,
Alex.
Personal blog: http://blog.outerthoughts.com/
LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
- Time is the quality of nature that keeps events from happening all at
once. Lately, it doesn't seem to be working. (Anonymous - via GTD book)