Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started



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

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?

10 |1000

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

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

0 Likes 0 ·

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!

10 |1000

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