Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Create 2024-11-26-apache-solr-filter-queries-integer-or-string-fields.md #133

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Create 2024-11-26-apache-solr-filter-queries-integer-or-string-fields.md
added a blog post about Apache solr filter queries
lizbiella committed Nov 26, 2024
commit d35a60e730ee60aa3336d71349beb6f1e9d10f95
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Title: Apache Solr Filter Queries: Integer or String Fields?
category: solr/blogposts
summary: Let's explore whether to index a field in Apache Solr as a string or integer for optimal filter query performance. Written by Ilaria Petreti, Information Retrieval/Machine Learning Engineer at Sease.
slug: apache-solr-filter-queries-integer-or-string-fields
URL: blogposts/apache-solr-filter-queries-integer-or-string-fields.html
save_as: blogposts/apache-solr-filter-queries-integer-or-string-fields.html

# Apache Solr Filter Queries: Integer or String Fields?

Imagine you are setting up an Apache Solr index and need to handle a field representing an ID that will be used frequently in filter queries.
The key question is: how should you index this field for optimal performance? Should you use a string field type, or would an integer field type be more efficient?

Let's combine the results of a local experiment with insights from online research to evaluate which option delivers better performance. Continue to the full post here: [Apache Solr Filter Queries: Integer or String Fields?
](https://sease.io/2024/11/apache-solr-filter-queries-integer-or-string-fields.html)