November Happy Hour will be moved to Thursday December 5th.

After updating Episerver Find from version 12 to version 13, I cannot update the field in the index by id

Vote:
 

Good afternoon. Faced the problem of updating the field in the find index after upgrading episerver find to version 13. It worked like that. There is a ContentData object for which is added to UnifiedSearch. An id is defined for it using `.IdIs (x => DocumentId.Create (x.Id))`. `IdAttribute` is added to the id field.Now when I try to update some field for this content, I get an error that the content does not exist in find. For this i use:

var id = SearchClient.Instance.Conventions.IdConvention.GetId({contentId});

SearchClient.Instance.Update<T>(id).Field(x => x.SomeField(), d.SomeField()).Execute();

Error:

"RemoteTransportException[Index][indices:data/write/update]]; nested: DocumentMissingException[[index][1] [SomeType][SomeId]: document missing]; "

This code worked fine on the previous version of episerver find (12.7.1). Help me please!

#220841
Apr 06, 2020 18:18
Vote:
 

After upgrading, have you cleaned the find indexes and rebuild that?

#220864
Apr 07, 2020 4:59
Vote:
 

Yes, index was cleaned and all content was reindexed

#220866
Apr 07, 2020 6:06
Vote:
 

Can you try to index the property explicitly as suggested in following solution

https://support.episerver.com/hc/en-us/articles/115003530211-SearchPhaseExecutionException-Failed-to-execute-phase-query-

Code sample

[InitializableModule]
[ModuleDependency(typeof(IndexingModule))]
public class PageSearchInitialization : IInitializableModule
{
    public void Initialize(InitializationEngine context)
    {
        SearchClient.Instance.Conventions
            .ForInstancesOf<SomePage>()
            .IncludeField(x => x.SomeField);
    }
}

I am not sure you were already indexing that property or not.

#220871
Apr 07, 2020 7:56
Vote:
 

Yes, I’m using this solution now, but it doesn’t work. But I noticed a feature that the custom models that we write to the index are updated by id, and everything regarding IContent does not work

#220885
Apr 07, 2020 14:22
Praful Jangid - Apr 07, 2020 14:31
OK, so do you have any direction now or can you provide more context about this id issue?
Artsiom Kalodka - Apr 16, 2020 13:16
What kind of additional information do you need?
Vote:
 

@Praful Jangid What kind of additional information do you need?

#221560
Apr 21, 2020 13:00
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.