Re: Exact match works only for some of the strings

2017-03-17 Thread Mikhail Khludnev
Hello Gintas, >From the first letter I've got that you use colon to separate fieldname and text. But here it's =, which is never advised in lucence syntax. On Fri, Mar 17, 2017 at 2:37 PM, Gintautas Sulskus < gintautas.suls...@gmail.com> wrote: > Hi, > > Thank you for your replies. > Sorry, forgo

Re: Exact match works only for some of the strings

2017-03-17 Thread Gintautas Sulskus
Hi, Thank you for your replies. Sorry, forgot to specify, I am using Solr 4.10.3 (from Cloudera CDH 5.9.0). When I search for name:Guardian I can see both "Guardian EU-referendum" and "Guardian US" in the result set. The debugQuery results for both queries are identical http://pastebin.com/xr96E

Re: Exact match works only for some of the strings

2017-03-16 Thread Alvaro Cabrerizo
Hello, I've tested on an old solr 4.3 instance and the schema and the field definition are fine. I've also checked that only the query nameExact:"Guardian EU-referendum" gives the result, the other one you have commented (nameExact:"Guardian US") gives 0 hits. Maybe, you forgot to re-index after s

Re: Exact match works only for some of the strings

2017-03-16 Thread Mikhail Khludnev
You can try to check debugQuery to understand how this query is parsed: double quotes hardly compatible with KeywordTokenizer. Also you can check which terms are indexed in SchemaBrowser. Also, there is Analysis page at Solr Admin. On Thu, Mar 16, 2017 at 8:55 PM, Gintautas Sulskus < gintautas.sul

Exact match works only for some of the strings

2017-03-16 Thread Gintautas Sulskus
Hi All, I am trying to figure out why Solr returns an empty result when searching for the following query: nameExact:"Guardian EU-referendum" The field definition: The type definition: The analysis, as expected, matches the query parameter against the stored value. Please take