1

Suppose there are three Entries:

  • Entry One
  • Section One
  • Channel One

I need to get Section One in result when I search Sect. Is this possible ? I am using

{% set entries = craft.entries.search(query) %}

to get the results. But keyword sect doesn't return any result.

2

Like stated in the docs you have to place * around your search term

{% set results = craft.entries({
    search: {
        query: '*sect*',
        subLeft: true,
        subRight: true                
    }
}) %}

Note: it would be easier to help you if you show us your query variable

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.