Skip to content

Hit<T> does not implement "sort" #121

@showlett

Description

@showlett

For searches that are geosorted, the "sort" field in the response is not serialized into Hit and so the actual distance of the Hit cannot be retrieved.

Update: Dec 6, 2012 - The 0.9.10.0 implements
[JsonProperty(PropertyName = "sort")]
public IEnumerable Sorts { get; internal set; }
in Hit. This causes serialization exceptions when sort is set to a text field (because it can't be serialized into the float). So, geosorts will now return the actual distance, but all text sorts will throw an exception. Probably this should be implemented as:
[JsonProperty(PropertyName = "sort")]
public IEnumerable Sorts { get; internal set; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions