When I go to /admin/config/search/search_api/index/[name]/workflow, all the checkboxes under Processors are disabled. I'd like to use highlighting. Is this a quick fix?

Comments

skek’s picture

Hello @Nick Robillard,

The processors are disabled with purpose because they are messing the indexing and searching.
For example no need of tokenisers, string to lower and s.o. because the elasticsearch support this internally and when Drupal handle this it mess the Elasticsearch index.
This should become a feature request to enable the elasticsearch highlighting.
I will take a look and let you know what will be best to do here.
It could be something quick to do and if it is I will try to make it fast.
Thanks for digging into the module.

Best Regards.

skek’s picture

skek’s picture

Status: Active » Needs work
StatusFileSize
new2.98 KB

Hello @Nick Robillard,

Just a simple patch for enabling the Elasticsearch highlighting.
Needs more work but it will work for a simple case.

skek’s picture

Category: Bug report » Feature request
skek’s picture

Be aware that if you are using a view and you are using "rendered entity" as formatter then the highlighting will not take effect. This should be true for any Search API backend btw if I'm not wrong but as far I saw in the code it should be like this.

Nick Robillard’s picture

Wow thank you for your speediness! I will test this and post my findings.

skek’s picture

Hi @Nick Robillard,

I didn't get any feedback about the patch. Did you have time to check it?

Best Regards,
Nikolay Ignatov

Bojhan’s picture

This seems to work, yet I cant get my excerpts to work.

skek’s picture

Component: Code » Elasticsearch Connector Search API
skek’s picture

We need also to handle the highlighting of the autocomplete.

  • skek committed 2d25ef4 on 7.x-1.x
    Issue #2237255 by @Nick Robillard and @Bojhan: Adding a special...
skek’s picture

Status: Needs work » Fixed

What needs to be done is to enable the highlight processor for Elasticsearch.
Lets open separate issues if there are problems with the functionality in order to be more manageable. I will relate them to this one after that.

Best Regards,
Nikolay Ignatov

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

coralie-15’s picture

Hello,

I have a same problem with drupal 7. The checkbox (tokenizer, stopwords ..), in search api-> filters-> processeurs, are disabled.
I added an analyzer in elasticsearch.yml, but Drupal ignores this analyzer.

How to activate checkboxes in Drupal or use the mapping defined in the elasticsearch.yml ?

Thanks for your help :)