Searching using a partial string is not working

Created on 5 March 2025, about 1 month ago

I have a field_name field set as Fulltext in a Solr server. When I create a view to display that field using this index, I receive all results as expected:

When I search for a partial name, I receive no results:

This is the query:

On "Filter criteria" for this exposed field, I selected:
Operator: Contains any of these words
Parse mode: Multiple words

I haven't enabled "Tokenizer" because it is disable with this message:
It is recommended not to use this processor with the selected server.

I did a test enabling it in the config file, imported the config and the result is the same: No results when I search a partial name.

Do you know how can I fix this issue?

๐Ÿ› Bug report
Status

Active

Version

1.0

Component

Views integration

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States rpayanm

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

Comments & Activities

  • Issue created by @rpayanm
  • ๐Ÿ‡ฆ๐Ÿ‡นAustria drunken monkey Vienna, Austria

    If you are using Solr as a backend, you probably just need to pick a different type than โ€œFulltextโ€. E.g., โ€œFulltext "edge"โ€ sounds promising. Switch the field type, reindex and then try again.
    In general, it is expected that only complete words might be found, depending on your configuration. This is dependent on the backend used.
    If you are not using Solr, please tell me which backend you are using.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States rpayanm

    Thanks @drunken monkey. That worked, I used Fulltext "edge". Could we add a description to this datatype so that someone knows, something like:
    This data type represents a search field that enables partial word matching. It allows users to find results containing the specified keyword or substring within a larger text

    Right now it says: Custom full text field.

  • ๐Ÿ‡ฆ๐Ÿ‡นAustria drunken monkey Vienna, Austria

    Right, that makes sense. Changing issue properties accordingly and moving to the correct queue.

  • ๐Ÿ‡ฆ๐Ÿ‡นAustria drunken monkey Vienna, Austria
Production build 0.71.5 2024