maybe someone got a hint for me … I’ve got a
problem with the sorting of search results …
strangely enough, the sorting is fine on my mac
development environment, but not okay on my
linux live system.
I got a field in my index called hierarchy. It
contains long strings like:
Living together > Family > Brother-In-Law
Living together > Family > Marriage > Wife
Language and Communication > Language > Language Family > Finnish
Now i want the results to be sorted by that
hierarchy field, but it seems to be sorted
randomly … i tried both :sort => “hierarchy”
as well as
i get differently sorted results, using the SortField
or the string parameter, but neither are in the
correct order. As i said, the sorting on my local
development machine is fine, it’s sorted the
way i would expect it …
I use ferret 0.11.4 with ruby 1.8.5 on both machines.
maybe someone got a hint for me … I’ve got a
problem with the sorting of search results …
strangely enough, the sorting is fine on my mac
development environment, but not okay on my
linux live system.
Hey …
for some reason, the field_infos were gone (or weren’t
created) on my live index. The ferret-browser is a cool
tool to verify the settings for each field. So if you’re
experiencing sorting problems, double check if your
field is really :untokenized, before posting to a ml
Ben
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.