You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Scott Derrick <sc...@tnstaafl.net> on 2026/01/01 00:23:40 UTC
Re: Search term automatically split at non-alphanumeric
Rahul,
thanks for the quick response.
In my schema is the field
<field name="_text_" type="text_general" indexed="true"
stored="true" multiValued="true"/>
all the fields I'm searching are of the type text_general like so, there
are many more
<field name="annotator" type="text_general" stored="true"
indexed="true" multiValued="false" />
<field name="author" type="text_general" stored="true"
indexed="true" multiValued="false" />
I am using the command below to reindex on my local test server
curl
http://localhost/solr/mbepp/update/tei?command=full-import&clean=true&commit=true
the string i'm searching for is in the text as "soul#person" returns a
single found document
I am using the solor admin dashboard to test the search and qt is set to
/select
The df param is in solrconfig.xml and specifies _text_
here is the link to mananged.schema
https://drive.google.com/file/d/13XW7cSoHguI-V9xpz408Z_rlvnhurZm-/view?usp=sharing
here is the link to solrconfig.xml
https://drive.google.com/file/d/12h5DiyqM3OEvcAHvjwbwFKr-l2iuikBV/view?usp=sharing
thanks so much for helping me with this...
I'm sure its a bonehead mistake I'm just not seeing on my part!
Scott
On 12/31/25 15:14, Rahul Goswami wrote:
> If
> 1) the field you are searching against has type "text_general" AND
> 2) you completely reindexed the data AND
> 3) The string "soul#person" is present in the data being indexed with a
> space before and after the string
> the schema you shared with the WhitespaceTokeinzerFactory in both index and
> query analyzer should work for the specific example of "soul#person" (even
> without the quotes).
>
> To check for #1, in you solrconfig.xml, assuming you are using "/select"
> handler for searching:
> - Check if there is a "df" parameter present, either directly in the
> definition for "/select" handler or under "initParams". It specifies the
> field used by default for searching if you are not overriding in your query.
> - For that field, check the "type" in schema.
>
> Make sure the WhitespaceTokenizerFactory is set for that field type
> ("text_general" or whatever it may be).
>
> If it still doesn't work, please share your managed-schema.xml (or
> schema.xml) and the solrconfig.xml. Fyi attachments/images get dropped in
> the mailing list, so you might need to share the text.
>
> Best,
> Rahul
>