# Add the ability to do case-insensitive Solr search for StringProperty and ListProperty

**URL:** <https://forum.xwiki.org/t/add-the-ability-to-do-case-insensitive-solr-search-for-stringproperty-and-listproperty/16955>\
**Category:** Development\
**Tags:** vote\
**Created:** [May 14, 2025, 7:42am UTC](https://forum.xwiki.org/t/add-the-ability-to-do-case-insensitive-solr-search-for-stringproperty-and-listproperty/16955 "2025-05-14T07:42:11Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![rjakse](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/r/3ab097/32.png) [@rjakse](https://forum.xwiki.org/u/rjakse)\
**Post date:** [May 14, 2025, 7:42am UTC](https://forum.xwiki.org/t/add-the-ability-to-do-case-insensitive-solr-search-for-stringproperty-and-listproperty/16955/1 "2025-05-14T07:42:11Z")

</div>

I think it would help being able to do exact searches (100% match) in object strings in a case-insensitive way using Solr.

- there are a lot of things that are case insensitive in Confluence, and having the ability to find stuff coming from Confluence imported with [our Confluence-XML contrib extension](https://extensions.xwiki.org/xwiki/bin/view/Extension/Confluence/) in a case insensitive way would help a lot
- there’s been [questions about doing case insensitive tag search on the forum](https://forum.xwiki.org/t/solrsearch-how-to-make-tags-search-for-tags-case-insensitive/11766)
- at the crossover of these last two points, it would be nice for the [CQL extension](https://extensions.xwiki.org/xwiki/bin/view/Extension/CQL/) to be able to issue case-insentitive tag Solr queries

It would probably make sense for StringProperty and ListProperty object parameters, maybe not so much for LargeStringProperty.

I see several possible resolutions for this matter:

1. do nothing and keep the things as they are now: we don’t address case insensitive search on string properties
2. Systematically have a case insensitive Solr field for all such properties
3. Selectively opt in for a case insensitive Solr field for properties we know it will be useful for  
3.1. XWiki tags should probably be one of them  
3.2. How to opt in? Should this be in the definition of a property?

There’s concern about the Solr index size increase this could incur and this should be considered. On the other hand:

- not having to reindex when we notice some field would benefit from a case insensitive Solr field would be great
- maybe the need for a case insensitive search can come from a separate developer than the developer in charge of the property, so not systematically having a case insensitive Solr field is risking a lack of functionality
- some properties having the case-insensitive field and some not having it could cause confusion because things are less uniform than they could be

Implementation details:

- `stored="false"` should help with the Solr index size.
- we could use the new `LowerCaseStrField`

Note: We already have `propertyvalue_` is `type="text_general"`, allowing case insensitive search, but not exact searches.

WDYT?

---

_[View the full topic](https://forum.xwiki.org/t/add-the-ability-to-do-case-insensitive-solr-search-for-stringproperty-and-listproperty/16955)._
