Hi!

I have a strange behaviour on Apache Solr.

I have a Taxonomy, called MY_TAXONOMY with this Translation mode:

Translate. Different terms will be allowed for each language and they can be translated.

With this option I can do search without problem in the fields that are term references to this taxonomy, using facets in the search page.

Now I changed the taxonomy to this Translation mode:

Localize. Terms are common for all languages, but their name and description may be localized.

After this, i delete the old terms, and add the new ones, and localize them.

Then I edit and save again the field.
If you don't do that, the field doesn't appear at :
/en/admin/structure/types/manage/YOUR_CONTENT_TYPE/display/search_index

Then i checked if facets are setup correctly.
I destroy the index, reindex, wait to process the index.
And then go the search page, and the facets disappear.
I go to the Apache Solr, and the fields are missing: they are not submitted.

Any idea?

Comments

JOINSO created an issue. See original summary.

JOINSO’s picture

Status: Active » Closed (works as designed)

Hi!

I found the problem.

If you delete the old values of a field, and you don't edit, save and publish the node again, the data of the field are empty because you delete the old values.
So Apache Solr, doesn't index fields that are not submitted with data.

So you need to do this steps if you destroy values or makes changes in your content type structure:

1) Edit field and save again: tha'ts make field visible again on Content Type Manage Display > Search index.
2) Edit again your contents, and reassing the correct data: don't forget to publish your content.
3) Destroy the Solr Index.
4) Submit all content.

Perhaps this well documented in the help of the module.
If not, it will interesting to put this lines perhaps with a better compose.