Re: Can't find document without searching for exact text containing colon

2022-10-01 Thread Shawn Heisey
On 10/1/22 15:52, Shawn Heisey wrote: I'm using SolrJ client and just specifying a document field like this: document.addField("fieldName", "foo:bar"); I think if you use it in this way, it does get properly escaped. All queries are logged at INFO.  I am about 98 percent sure that if you h

Re: Can't find document without searching for exact text containing colon

2022-10-01 Thread Shawn Heisey
On 10/1/22 13:37, Christopher Schultz wrote: I'm using SolrJ client and just specifying a document field like this: document.addField("fieldName", "foo:bar"); I think if you use it in this way, it does get properly escaped. Escaping characters in a query is mainly something to be concerned ab

Re: Can't find document without searching for exact text containing colon

2022-10-01 Thread Shawn Heisey
On 10/1/22 15:41, Shawn Heisey wrote: Sharing the field and fieldtype definitions from your schema and the exact input for both indexing and query will let us configure our own Solr identically and try it, using the analysis section in the admin UI.  Which you can do yourself.  It is an invalua

Re: Can't find document without searching for exact text containing colon

2022-10-01 Thread Shawn Heisey
On 10/1/22 13:37, Christopher Schultz wrote: Is there a simple way for me to dump something to show you how the fields are being analyzed? To short-circuit me saying things like "I don't know what's really going on under there"? ;) Sharing the field and fieldtype definitions from your schema a

Re: Can't find document without searching for exact text containing colon

2022-10-01 Thread Christopher Schultz
Shawn, On 10/1/22 11:50, Shawn Heisey wrote: On 10/1/22 08:34, Christopher Schultz wrote: I have a multi-valued field of type text_general and a specific document contains one field value with text "foo:bar". When searching for either "foo" or "bar", I do not get this document in search result

Re: Can't find document without searching for exact text containing colon

2022-10-01 Thread Shawn Heisey
On 10/1/22 12:35, Charan Kooram wrote: How do i unsubscribe from this mailing list ? Haven’t been able to figure out yet. The unsubscribe address is on the page as info about subscribing, with clickable links.  Send from the same email address that was originally used to subscribe. https://

Re: Can't find document without searching for exact text containing colon

2022-10-01 Thread Charan Kooram
How do i unsubscribe from this mailing list ? Haven’t been able to figure out yet. Thanks. On Sat, Oct 1, 2022 at 7:35 AM Christopher Schultz < ch...@christopherschultz.net> wrote: > All, > > I have a multi-valued field of type text_general and a specific document > contains one field value wit

Re: Can't find document without searching for exact text containing colon

2022-10-01 Thread Mikhail Khludnev
Hi Chris, Probably query parser interprets a colon https://solr.apache.org/guide/solr/latest/query-guide/standard-query-parser.html#querying-specific-fields You can check it with debugQuery. If it has a place, you can escape colon with backslash. Or use a specific qparser like https://solr.apache.o

Re: Can't find document without searching for exact text containing colon

2022-10-01 Thread Shawn Heisey
On 10/1/22 08:34, Christopher Schultz wrote: I have a multi-valued field of type text_general and a specific document contains one field value with text "foo:bar". When searching for either "foo" or "bar", I do not get this document in search results. However, when searching for "foo:bar" or "