Forums / Developer / EzFind 2.0 sort

EzFind 2.0 sort

Author Message

Virgilio Lemos

Wednesday 02 September 2009 11:06:28 pm

EzFind 2.0 is giving no results when sorted by path parameter.
The same occurs for class_id and name parameters.

All others are ok.

example ok:
'sort_by', hash( 'section_id', 'asc' ),

example nok:
'sort_by', hash( 'path', 'asc' ),

Is it a bug?

Vincent Tabary

Thursday 03 September 2009 12:15:45 am

Hi,

It seems that I got the same result on a project under eZFind which is working with other sorts.

Sorting by path returns an error on this project.

Got invalid result from search engine.

Indeed, this could be a bug but I do not have a solution, sorry.

Vinz
http://vincent.tabary.me

Bruce Morrison

Thursday 03 September 2009 12:50:58 am

Amazing - had this same issue today!

I added some debugging and the search is return this error when sorting by name

there are more terms than documents in field "meta_name_t", but it's impossible to sort on tokenized fields

and for path, the same kind of issue

there are more terms than documents in field "meta_path_si", but it's impossible to sort on tokenized fields

So it looks like there are some issues with how this data is being stored by the underlying search engine.

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Paul Borgermans

Thursday 03 September 2009 1:37:40 am

Can you file a bug report? It should actually work

Edited:

Indeed, the format for storing in the backend is the problem

We need to add different treatment for sorting and facets versus normal search

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Bruce Morrison

Thursday 03 September 2009 4:58:43 pm

Issue lodged here: http://issues.ez.no/IssueView.php?Id=15423&activeItem=1

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Jérôme Vieilledent

Friday 18 February 2011 7:56:41 am

Hi guys

Fixed in :
- master (https://github.com/ezsystems/ezfind/commit/62ab7b22bab25e29b7c8c321f9f5824f3014e955)
- stable-2.2 (https://github.com/ezsystems/ezfind/commit/83c99f8ceb2c819cb00291d013c3e6ca39257d06)
- stable-2.1 (https://github.com/ezsystems/ezfind/commit/4a42fa7c592f2f21e35e887534b2727c1230ec44)