Re: Querying only for "+" character causes org.apache.lucene.queryParser.ParseException

2013-04-24 Thread Jorge Luis Betancourt Gonzalez
solr-user@lucene.apache.org Enviados: Martes, 23 de Abril 2013 10:44:39 Asunto: Re: Querying only for "+" character causes org.apache.lucene.queryParser.ParseException If you want to allow your users to search for '+' , you also define your '+' as being a regular ALPHA char

Re: Querying only for "+" character causes org.apache.lucene.queryParser.ParseException

2013-04-23 Thread Jorge Luis Betancourt Gonzalez
olr-user@lucene.apache.org Enviados: Martes, 23 de Abril 2013 10:44:39 Asunto: Re: Querying only for "+" character causes org.apache.lucene.queryParser.ParseException If you want to allow your users to search for '+' , you also define your '+' as being a regular ALPHA c

Re: Querying only for "+" character causes org.apache.lucene.queryParser.ParseException

2013-04-23 Thread Jérôme Étévé
t; included in my application, It would be possible to, for instance, use some > regular expression at querying time in my schema to avoid a query that > contains only this characters? for instance + and + would be a good > catch to avoid. > > Thanks in advance! > >

Re: Querying only for "+" character causes org.apache.lucene.queryParser.ParseException

2013-04-23 Thread Jorge Luis Betancourt Gonzalez
good catch to avoid. Thanks in advance! - Mensaje original - De: "Kai Becker" Para: solr-user@lucene.apache.org Enviados: Martes, 23 de Abril 2013 9:48:26 Asunto: Re: Querying only for "+" character causes org.apache.lucene.queryParser.ParseException Hi, you ne

Re: Querying only for "+" character causes org.apache.lucene.queryParser.ParseException

2013-04-23 Thread Kai Becker
Hi, you need to escape that char in search terms. Special chars are + - ! ( ) { } [ ] ^ " ~ * ? : \ / at the moment. The %2B is just the url encoding, but it will still be a + for Solr, so just put a \ in front of the chars I mentioned. Cheers, Kai Am 23.04.2013 um 15:41 schrieb Jorge Luis Bet

Querying only for "+" character causes org.apache.lucene.queryParser.ParseException

2013-04-23 Thread Jorge Luis Betancourt Gonzalez
Hi! Currently I'm working on a basica search engine for, the main problem is that during some tests a problem was detected, in the application if a user search for the "+" or "-" term only or the "+" string it causes an exception in my application, the problem is caused for an org.apache.l