Search API Solr: Increase maxGramSize for Fulltext Ngram Field

Created on 16 February 2024, 9 months ago
Updated 5 March 2024, 9 months ago

Issue

Currently, when using the Search API Solr module with a field of type Fulltext Ngram, the maxGramSize is set to 25 by default. This setting limits search results when querying for words longer than 25 characters.

Proposed Solution

To overcome this limitation, we propose increasing the maxGramSize to a higher value, allowing for more accurate search results, especially when searching for longer words.

Steps to Reproduce:

  1. Set up a Search API Solr index with a field of type Fulltext Ngram.
  2. Add content with words longer than 25 characters.
  3. Perform a search query for a word longer than 25 characters.
  4. Observe that no results are returned due to the maxGramSize limitation.

Expected Results:

Search results should be returned for words longer than 25 characters when using the Fulltext Ngram field type.

💬 Support request
Status

Fixed

Version

4.3

Component

Code

Created by

🇮🇳India ananthakrishnan.kr

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024