Thanks Erick. I did look into the analyser tool and debug query and posted the results in my post. WDF is correctly stripping off the "-" from Inventor-template, both terms are getting broken down to "inventor templat". But not sure why the query construct is different during query time. Here's parsed query:
*Inventor-template* <str name="parsedquery"> (+DisjunctionMaxQuery(((+CommandSrch:inventor +CommandSrch:templat) | text:"inventor templat"^1.5 | Description:"inventor templat"^2.0 | title:"inventor templat"^3.5 | keywords:"inventor templat"^1.2)~0.01) Source2:sfdcarticles^9.0 Source2:downloads^5.0 FunctionQuery(1.0/(3.16E-11*float(ms(const(1472169600000),date(PublishDate)))+1.0)))/no_coord </str> <str name="parsedquery_toString"> +((+CommandSrch:inventor +CommandSrch:templat) | text:"inventor templat"^1.5 | Description:"inventor templat"^2.0 | title:"inventor templat"^3.5 | keywords:"inventor templat"^1.2)~0.01 Source2:sfdcarticles^9.0 Source2:downloads^5.0 1.0/(3.16E-11*float(ms(const(1472169600000),date(PublishDate)))+1.0) </str> *Inventor template* <str name="parsedquery"> (+(+DisjunctionMaxQuery((CommandSrch:inventor | text:inventor^1.5 | Description:inventor^2.0 | title:inventor^3.5 | keywords:inventor^1.2)~0.01) +DisjunctionMaxQuery((CommandSrch:templat | text:templat^1.5 | Description:templat^2.0 | title:templat^3.5 | keywords:templat^1.2)~0.01)) Source2:sfdcarticles^9.0 Source2:downloads^5.0 FunctionQuery(1.0/(3.16E-11*float(ms(const(1472169600000),date(PublishDate)))+1.0)))/no_coord </str> <str name="parsedquery_toString"> +(+(CommandSrch:inventor | text:inventor^1.5 | Description:inventor^2.0 | title:inventor^3.5 | keywords:inventor^1.2)~0.01 +(CommandSrch:templat | text:templat^1.5 | Description:templat^2.0 | title:templat^3.5 | keywords:templat^1.2)~0.01) Source2:sfdcarticles^9.0 Source2:downloads^5.0 1.0/(3.16E-11*float(ms(const(1472169600000),date(PublishDate)))+1.0) </str> The part I'm confused is why the two queries are being interpreted differently ? Thanks, Shamik -- View this message in context: http://lucene.472066.n3.nabble.com/Inventor-template-vs-Inventor-template-issue-with-hyphen-tp4293357p4293380.html Sent from the Solr - User mailing list archive at Nabble.com.