Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I suppose the title says it all - I have a site that I'm using Acquia's Apachesolr on and I'd like to use the elevate.xml to push results to the top based on a keyword. Can I do this?
Comment | File | Size | Author |
---|---|---|---|
#10 | 1105528-1.patch | 620 bytes | Nick_vh |
Comments
Comment #1
pwolanin CreditAttribution: pwolanin commentedSounds like you need to open a support ticket with Acquia, if the question is specific to the service?
Comment #2
tomdisher CreditAttribution: tomdisher commentedI'm not sure that it is. The file seems to be standard for all apachesolr servers. I'm not sure.
Comment #3
pwolanin CreditAttribution: pwolanin commentedYes, it's a server side file. Do you have direct access to the servers to modify the file?
Comment #4
jpmckinney CreditAttribution: jpmckinney commentedComment #5
tomdisher CreditAttribution: tomdisher commentedYou are correct, it is a bottleneck of using Acquia. It seems they don't allow you to use it at this time. Thanks for the reply!
Comment #6
yxor_75us CreditAttribution: yxor_75us commentedI am trying to use elevate.xml with Drupal Apachesolr module on Drupal 6, I am not seeing any support for elevate.xml using /select url. If i change the url to /elevate, elevated results appear, but then lot of other apachesolr functionality is broken.
Anyone has working examples or solutions i can use?
Thanks in advance.
Comment #7
yxor_75us CreditAttribution: yxor_75us commentedAny help on how to use query elevation(elevate.xml) with apache solr module on drupal 6?
Comment #8
mherchel@yxor_75us -
This took me several days to figure out, but if you have access to your server's solrconfig.xml, you can set the default request handler to use the elevate component (QueryElevationComponent).
To do this, you'll need to find the default request handler (use this to find http://wiki.apache.org/solr/SolrRequestHandler).
Within this module's solrconfig.xml, the default handler is called "partitioned" and occurs at or around lines 458-504.
You'll need to add
<str>elevator</str>
into<arr name="last-components">
at the end (line 503 for me). The end result should look like this:Good luck!
Comment #9
Nick_vhMoving
Comment #10
Nick_vhComment #11
Nick_vhCommitted and named the schema and config solr drupal-4.3-3.x and 4.x
Comment #12
Nick_vh