renjithkathirolil / solr-php-client

Automatically exported from code.google.com/p/solr-php-client
Other
0 stars 0 forks source link

Grouped results will not be parsed #71

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The new grouping functionality is not working with the library V22. The whole 
resultset is skipped in the parsing process of the the response in the 
_parseData() function of the Response.php

To parse grouped resultset is additional code required. I try to solve the 
problem but maybe others have a similar problem and we could share the 
development ideas.

Regards Frank

Original issue reported on code.google.com by frank.ro...@gmail.com on 8 Oct 2011 at 4:10

GoogleCodeExporter commented 9 years ago
After a view hours I got the expected result. I would like to share this here 
for review and maybe if accepted it will be commited and make others also happy.

Original comment by frank.ro...@gmail.com on 8 Oct 2011 at 6:54

Attachments:

GoogleCodeExporter commented 9 years ago
There are several Solr request plugins that can adds bits of information to the 
response format. These are all already available through the client's Response 
object (using magic __get), however often they need extra massaging to be put 
in a useful format - as you've discovered. 

I've decided to keep _parseData minimal like it is because it'd be hard to keep 
up with all the plugins and what I consider useful processing might not be what 
the next person wants. Most users do their processing outside of the client. A 
good example is highlighting response processing.

Something I can offer to do is allow the setting of processing callbacks that 
could be chained together as the user wants. A set of functions could then be 
offered within the client codebase that could be used directly or as starting 
points.

Does that sound interesting?

Original comment by donovan....@gmail.com on 10 Oct 2011 at 3:41