Re: Range query on TextField

2022-01-12 Thread WU, Zhiqing
Hi Andy, Many thanks for your quick reply. Yes, you are right. According to the webpage of Solr 8.5, I should not edit "managed-schema". However, when I create the new core (bin/solr create -c newcore), I only can find managed-schema in server/solr/newcore/conf folder, and am not able to find schem

Re: Range query on TextField

2022-01-12 Thread Andy C
Also it doesn't make sense to use the StopFilterFactory or SynonymGraphFilterFactory filters in conjunction with the KeywordTokenizerFactor, so these should be removed from the fieldType definition (personally I would never make use of the StopFilterFactory, except in specialized situations). - An

Re: Range query on TextField

2022-01-12 Thread Andy C
How are you changing the managed-schema? I have never used the managed schema feature myself, but according to the documentation ( https://solr.apache.org/guide/8_5/overview-of-documents-fields-and-schema-design.html#solrs-schema-file) it should never be directly edited. Not sure how it is supposed

Re: Range query on TextField

2022-01-12 Thread WU, Zhiqing
Hi Andy, Loads of thanks for your reply. I am trying to figure out my problem by following your advice. I have installed Solr (8.5) on my computer and added 4 documents into a core. In the 4 documents, staffName_txt field has been set to "Lindmar Deborah", "Mr Kenyon John", " Saab Jerry" and "Gr

Re: Range query on TextField

2022-01-07 Thread Andy C
The behavior of the range query would depend on how the fieldType used by the staffName_txt is configured. I believe you will find that TextField is not the fieldType, but the base class your fieldType is implemented on. To use an example from one of the provided example schemas, the "_text" fiel

Re: Range query on TextField

2022-01-07 Thread WU, Zhiqing
Many thanks for your reply. I have changed my query to staffName_txt:["GROSS BOB" TO "LINDMAR DEBORAH"] staffName_txt:["gross bob" TO "lindmar deborah"] staffName_txt:["Gross Bob" TO "lindmar Deborah"] Their "numFound" are identical (177). Apart from "Mr Kenyon John", my search result contains " Sa

Re: Range query on TextField

2022-01-07 Thread Srijan
My guess is inconsistent "character case" (uppercase/lowercase) in your indexed data vs your search query. For example, I would expect something like staffName_txt:[ "Gross Bob" TO "lindmar Deborah"] to return "Mr Kenyon John" as M indeed does lie between G and l. On Fri, Jan 7, 2022 at 11:10 A