I'm trying to implement Lucene query for multi-word autosuggest full-text search.
For example, I'd like to be able to search for Arnold Schwarzenegger
in database.
Right now I can do the fuzzy search by one word:
Name.primaryName:Shwarzengger~
which returns:
Arnold Schwarzenegger
Katherine Schwarzenegger
Patrick Schwarzenegger
Christian Schwarzenegger
Aurelia Schwarzenegger
Patrick M. Knapp Schwarzenegger
Brian Schwarzenegger
Christina Schwarzenegger
but how to do the same for a multi-word term?
For example the following query:
Name.primaryName:arn Shwarzengger~
doesn't work with the following error:
Neo.ClientError.Procedure.ProcedureCallFailed: Failed to invoke procedure
apoc.index.nodes
: Caused by: java.lang.NullPointerException: field must not be null
How to properly construct multi-word search term?