Re: - character in search query

2011-07-25 Thread Erick Erickson
dismax is a fairly narrow-use parser. By that I mean it was created to solve a specific issue. It has some pronounced warts as you've discovered. edismax is the preferred parser if you have access to it. I'd just ignore dismax if you have access to edismax. There's been some talk of deprecating di

Re: - character in search query

2011-07-20 Thread roySolr
When i use the edismax handler the escaping works great(before i used the dismax handler).The debugQuery shows me this: +((DisjunctionMaxQuery((name:arsenal)~1.0) DisjunctionMaxQuery((name:london)~1.0))~2 The "\" is not in the parsedquery, so i get the results i wanted. I don't know why the disma

Re: - character in search query

2011-07-20 Thread roySolr
Here is my complete fieldtype: In the Field Analysis i see that the - is removed by the patternreplaceFilter. When i escaped the term($q = SolrUtils::escapeQueryChars($q);) i see in my debugQuery something like this(term = arsenal

Re: - character in search query

2011-07-19 Thread Erick Erickson
Let's see the complete definition. Have you looked at your index with, say, Luke and seen what's actually in your index? And do you re-index after each schema change? What does your admin/analysis page look like? Have you considered PatternReplaceCharFilterFactory rather than the tokenizer? Best

Re: - character in search query

2011-07-19 Thread roySolr
Anybody? -- View this message in context: http://lucene.472066.n3.nabble.com/character-in-search-query-tp3168604p3182228.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: - character in search query

2011-07-14 Thread roySolr
Yes, i had some tokenizer like this: Now i removed the - from this tokenizer and the debugQuery looks like this: (name:arsenal | city:arsenal)~1.0 (name:\- | city:\-)~1.0 (name:london | city:london)~1.0 Still i get no results.. -- View this message in context: http://lucene.472066.n3.nabble

Re: - character in search query

2011-07-14 Thread François Schiettecatte
Easy, the hyphen is out on its own (with spaces on either side) and is probably getting removed from the search by the tokenizer. Check your analysis. François On Jul 14, 2011, at 6:05 AM, roySolr wrote: > It looks like it's still not working. > > I send this to SOLR: q=arsenal \- london > >

Re: - character in search query

2011-07-14 Thread roySolr
It looks like it's still not working. I send this to SOLR: q=arsenal \- london I get no results. When i look at the debugQuery i see this: (name: arsenal | city:arsenal)~1.0 (name: \ | city:\)~1.0 (name: london | city: london)~1.0 my requesthandler: dismax

Re: - character in search query

2011-07-14 Thread roySolr
thanks! I use the escape function of the solr pecl package to escape special characters http://docs.php.net/manual/kr/solrutils.escapequerychars.php -- View this message in context: http://lucene.472066.n3.nabble.com/character-in-search-query-tp3168604p3168638.html Sent from the Solr - User mai

Re: - character in search query

2011-07-14 Thread James Bond Fang
Using '\' to escape. -- View this message in context: http://lucene.472066.n3.nabble.com/character-in-search-query-tp3168604p3168612.html Sent from the Solr - User mailing list archive at Nabble.com.

Re:- character in search query

2011-07-14 Thread 方振鹏
using '\' to escape. Best Wishes. -- Best wishes James Bond Fang 方 振鹏 Dept. Software Engineering Xiamen University -- Original -- From: "roySolr"; Date: 2011年7月14日(星期四) 下午5:29 To: "solr-user"; Subject: - character in se