Examine sorting by string not working in Umbraco 10
Hi all, We want to be able to sort the results based on a string field(aggregationTitleSortable). This is what we have done so far but it is not sorting the results alphabetically.
public class ExamineComposer : IComposer
{
public void Compose(IUmbracoBuilder builder)
{
builder.Services.ConfigureOptions<ConfigureExternalIndexOptions>();
}
}
public class ConfigureExternalIndexOptions : IConfigureNamedOptions<LuceneDirectoryIndexOptions>
{
public void Configure(string? name, LuceneDirectoryIndexOptions options)
{
options.FieldDefinitions.AddOrUpdate(new FieldDefinition("aggregationTitleSortable", FieldDefinitionTypes.FullTextSortable));
}
}
Examine sorting by string not working in Umbraco 10
Hi all, We want to be able to sort the results based on a string field(aggregationTitleSortable). This is what we have done so far but it is not sorting the results alphabetically.
Search Service
I can see the value getting correctly set also.(screenshot attached)
Can someone please point me if I am doing something wrong?
Hi all, needed your inputs on this. Has anyone been able to sort based on a string in umbraco 10?
Don't have an answer I'm afraid, I did do some tests and couldn't get it to work either.
Do you reckon its a bug with examine in umbraco v10?
I'm getting the same results in v13 too, will have a play around later and see if I can get anywhere
Thank you so much! Really appreciate your effort in trying to troubleshoot this issue
Paul Seal posted about a solution on Discord https://discord.com/channels/869656431308189746/1273588422069583933/1273601862922403870
I have written an article explaining the solution here https://www.debasish.tech/blogs/how-to-sort-on-a-string-field-in-umbraco-examine
is working on a reply...