question

brent.hale_101199 avatar image
brent.hale_101199 asked Erick Ramirez edited

How do I create a custom query handler?

I have a need to pass back more information from Solr to my client. Specifically, I am trying to use Solr's "Result Grouping" feature. I gather that in order to use "Custom Payload" I need to implement my own custom query handler. See https://docs.datastax.com/en/developer/java-driver-dse/1.7/manual/custom_payloads/

I'd like to do that by extending DSE's DseQueryHandler so that I don't mess with existing functionality. It would really be helpful to see the DseQueryHandler code. I'll want to do something similar to how it passes back "DSESearch.numFound". Is there a place I can see that code? Are their examples of anyone doing this?


search
2 comments
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Erick Ramirez avatar image Erick Ramirez ♦♦ commented ·

@brent.hale_101199 Just letting you know that I've requested someone from our team to respond to your question. Cheers!

0 Likes 0 ·
Erick Ramirez avatar image Erick Ramirez ♦♦ commented ·

I apologise @brent.hale_101199 for not getting back to you. I only just realised that this dropped off my radar and I'm very sorry for that.

0 Likes 0 ·

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered

@brent.hale_101199 Support for custom payloads was dropped sometime ago and we no longer allow custom code to be used with DSE because they have resulted in weird behaviour in the past and it was really difficult to support. We have seen problems arise even in situations where customers upgrade to a newer minor release.

I understand that you have been working with our Solution Architects so if you discuss your use case with one of our SAs, perhaps we can come up with a solution for you. Cheers!

Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.