Domanda

I'm trying to improve an existing solr search which uses the StandardRequestHandler. I'd like to switch to a dismax-based handler, however I'll need to remove the fieldname from the "fieldname:value" query.

Is it possible to modify the q parameter value as it's passed to a request handler?

È stato utile?

Soluzione

I haven't looked into this deeply but I think you might want to create your own QueryParser, probably extending the one you're using now. The result you want to achieve does require some coding.

On the other hand, of course it would be better to modify the client side, that way you wouldn't need to hack Solr.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top