Closed (duplicate)
Project:
Apache Solr Search
Version:
7.x-1.0-rc2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
16 Jun 2012 at 15:42 UTC
Updated:
12 Oct 2012 at 10:29 UTC
Jump to comment: Most recent file
Comments
Comment #1
nick_vhComment #2
nick_vhMore info and use can be found here #1434462-19: ApacheSolr module integration
Comment #3
nick_vhSome spacing issue that should be fixed. Another problem that needs to be fixed is whenever a search page without a query suddenly gets the facet information in the url
search/site
search/site/facet/value
it will take facet as the query string value. We should actively prevent this from happening somehow.
Comment #4
nick_vhThis patch should work natively with latest dev of facetapi_pretty_paths. It changes the getPath parameter to add an extra slash, so we always know if there is a query or not. This is due to the fact that we do not want to handle special cases.
Comment #5
nick_vhAdding tag
Comment #6
swentel commentedDid a quick test, here's what I found:
Can't give more pointers or debugging at this point, will try more tomorrow.
Comment #7
nick_vhMake sure you also use #1648582: Multiple values or hierarchies doesn't work
How the facets are ordered, that is up to the facetapi pretty paths module. The alias problem should be fixed with patch from above.
https://skitch.com/nick_vh/end3y/search-smartphone-compare shows that multiple paths are actually working?
Comment #8
swentel commentedHmm ok, that makes it all work, setting back to needs review to get hopefully more eyes on it :)
Comment #9
nick_vhI clicked through all possible filters and widgets I could find and could not catch any error.
The only disadvantage is the extra slash that is being added sometimes, but this generally does not harm the search pages nor results. Let's commit this as last one and roll an RC
Comment #10
nick_vhcommitted to 7.x-1.x
Comment #11
killua99 commentedThis lines in 6.x-3.x are commented, So I keep it commented. Correct me if I did wrong.
Comment #13
killua99 commentedI miss the details about variable_get() second argument.
Try it again.
Comment #15
jamesharv commentedI just upgraded to 7.x-1.0-rc2 and I think this change has caused a problem with normal searches from search_block_form.
http://drupalcode.org/project/apachesolr.git/commitdiff/8e3c40a1b977e21c...
When I do a search the keywords get urlencoded twice. So a search for 'test search' ends up redirecting to '/search/site/test%2520search' and a search is performed for 'test%20search'.
I think the problem comes from the code below. It seems that the comment 'Replace keys with their rawurldecoded value' is not what is actually happening. The keys are actually being rawurlencoded.
Comment #16
nick_vhI was expecting some problems like this to appear. In my test environment this does not happen, therefor it is important that you list the steps I need to take so I can replicate the problem.
A good test is to search for test/test and it encodes the slash and decodes it in the search. Naturally, your test with "search test" should work also!
It could also be that you have modified your search block or that your search block has a different form id, can you check that?
Comment #17
nick_vhDuplicate of #1688150: Search query string gets double encoded when core Search block form is submitted