Re: querying on field of type string doesn't work as expected

2018-11-19 Thread Alexandre Rafalovitch
You can always replace String type with Text type and KeywordAnalyzer definition. That keeps the whole input as one token, but still allows to modify (e.g. normalize spaces with PatternReplaceCharFilterFactory) or even one of the ICU filters (warning: ICU is dark magic...) Regards, Alex. On Mo

Re: querying on field of type string doesn't work as expected

2018-11-19 Thread Angel Todorov
That’s correct - the original source of my data which I was crawling had 160 as space. This took a while to find. :) Solr is working fine. Thank you ! On Tue, 20 Nov 2018 at 1:28, Shawn Heisey wrote: > On 11/19/2018 3:31 PM, Angel Todorov wrote: > > the *real* issue is that SOLR expects a char

Re: querying on field of type string doesn't work as expected

2018-11-19 Thread Shawn Heisey
On 11/19/2018 3:31 PM, Angel Todorov wrote: the *real* issue is that SOLR expects a character with a code of 160 for space, while the standard space as typed from a keyboard has a code of 32. Both appear exactly the same. Here's where the issue comes from. If i generate the 160 space, and copy pa

Re: querying on field of type string doesn't work as expected

2018-11-19 Thread Angel Todorov
;> unprintable characters.Eric.Sent from my Samsung Galaxy smartphone. >> > ---- Original message ----From: Angel Todorov < >> attodo...@gmail.com> Date: 2018-11-15 04:06 (GMT-05:00) To: >> solr-user@lucene.apache.org Subject: Re: querying on field of type >

Re: querying on field of type string doesn't work as expected

2018-11-19 Thread Angel Todorov
> > > Try comparing strings char by char. White spaces are sometimes > unprintable characters.Eric.Sent from my Samsung Galaxy smartphone. > > Original message From: Angel Todorov < > attodo...@gmail.com> Date: 2018-11-15 04:06 (GMT-05:00) To: > solr-user@lucen

Re: querying on field of type string doesn't work as expected

2018-11-15 Thread Erick Erickson
Date: 2018-11-15 04:06 (GMT-05:00) To: solr-user@lucene.apache.org Subject: > Re: querying on field of type string doesn't work as expected hi Erik,Thanks, > but neither of those seem to work. (neither "Some\ Text" , norSome\ Text). > Also, assuming I may have many fields with dif

Re: querying on field of type string doesn't work as expected

2018-11-15 Thread e_briere
Try comparing strings char by char. White spaces are sometimes unprintable characters.Eric.Sent from my Samsung Galaxy smartphone. Original message From: Angel Todorov Date: 2018-11-15 04:06 (GMT-05:00) To: solr-user@lucene.apache.org Subject: Re: querying on field of type

Re: querying on field of type string doesn't work as expected

2018-11-15 Thread Angel Todorov
hi Erik, Thanks, but neither of those seem to work. (neither "Some\ Text" , nor Some\ Text). Also, assuming I may have many fields with different types, I don't think this is a very good design to leave it up to the application developer to have different encoding based on what the underlying SOLR

Re: querying on field of type string doesn't work as expected

2018-11-14 Thread Erick Erickson
No it doesn't match. You have to get the search in as a single term. You get a lot of information by adding &debug=true and looking at your parsed query. Try myFieldName:"Some\ Text" o myFieldName:Some\ Text Best, Erick On Wed, Nov 14, 2018 at 4:02 PM Angel Todorov wrote: > > Hi guys, > > I hav

querying on field of type string doesn't work as expected

2018-11-14 Thread Angel Todorov
Hi guys, I have SOLR 6.5 , and a custom defined field which is of type string (not text or text_general). In some document, there is the value for that field, for example, "Some Text" . When I query by myFieldName:"Some Text" , I don't get any matches, but I think I should, because this matches th