The parenthesis are being added by the spellchecker. I tried to envision a number of different scenarios when designing how this would work and at the time it seemed best to add parenthesis around terms that originally were together but now are split up. From your example, I see this is a mistake.
I see no reason why you can't just strip these, or use the "collateExtendedResults" to construct your own query, for now. Would you mind giving a little more detail on your query parameters in a JIRA bug report, so we can track this problem and fix it? Overall, its a bit tricky when splitting a term into multiple to make sure that if the original term was required|optional|prohibited that all the resulting terms also have the same status. See WordBreakSolrSpellCheckerTest#testCollate for details. James Dyer E-Commerce Systems Ingram Content Group (615) 213-4311 -----Original Message----- From: Carrie Coy [mailto:c...@ssww.com] Sent: Tuesday, October 02, 2012 3:08 PM To: solr-user@lucene.apache.org Subject: WordBreak spell correction makes split terms optional? The user query "design your ownbinoculars" is corrected by the 'wordbreak' dictionary to: <str name="querystring">design your (own binoculars)</str> Where are the parentheses coming from? Can I strip them with a post-processing filter? The parentheses make the terms optional, so, while the first match is excellent, the rest are irrelevant. Thx, Carrie Coy