lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amrit Sarkar <>
Subject Re: I want "john smi" to find "john smith" in my custom "fullname_s" field
Date Tue, 06 Jun 2017 09:14:01 GMT

"string" is a primitive data-type and the entire value of a field is
indexed as single token. The regex matching happens against the tokens for
text fields and against the full content for string fields. So once a piece
of text is tokenized, there is no way to perform a regex query across word

fullname_s:john smi* is working for me.

      "q":"fullname_s:john smi*",
        "fullname_s":"john smith",

I am on Solr 6.5.0. What version you are on?

Amrit Sarkar
Search Engineer
Lucidworks, Inc.

On Tue, Jun 6, 2017 at 1:30 PM, Nick Way <>

> Hi - I have a Solr collection with a custom field "fullname_s" (a string).
> I want "john smi" to find "john smith" (I lower-cased the names upon
> indexing them)
> I have tried
> fullname_s:"john smi*"
> fullname_s:john smi*
> fullname_s:"john smi?"
> fullname_s:john smi?
> but nothing gives the expected result - am I missing something? I spent
> hours on this one point yesterday so if anyone can please point me in the
> right direction I'd be really grateful.
> I'm using Solr with Adobe Coldfusion by the way but I think the principles
> are the same.
> Thank you!
> Nick

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message