Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat: Use strpos for replacement #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

erkenes
Copy link

@erkenes erkenes commented Sep 12, 2022

Use strpos for the replacement.
Allows to use additional static terms in a query term

@erkenes
Copy link
Author

erkenes commented Sep 12, 2022

This change allows to use wildcard searching

PunktDe:
  Elastic:
    NodeSearchService:
      searchStrategies:
        wildcardSearch:
          condition: 'yourCondition'
          request:
            query:
              query_string:
                query: '*ARGUMENT_TERM*' # `ARGUMENT_TERM` will be replaced with the input value

Use strpos for the replacement.
Allows to use additional static terms in a query term
@erkenes erkenes changed the title feat: Use str_replace for replacement feat: Use strpos for replacement Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant