Closed (fixed)
Project:
Search API Solr
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
20 Nov 2012 at 23:10 UTC
Updated:
18 Apr 2013 at 17:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
nick_vhIf I were you, I'd steal the classes of apachesolr. They are tested and robust.
Comment #2
drunken monkeyNot as easy as it sounds, but yes, that's what I did. Would have loved to get rid of the flood of copyright notices but in the end I just didn't have the time to write my own solution.
So, here it is, my first try at implementing this. I took the chance to do some major refactoring while I was at it, e.g., moving all include files into the
includes/directory. So, after applying the patch, please executeupdate.php(or at least clear the cache – the DB update adds a cache table, which isn't really used for normal functionality) immediately!And, generally, please test and review! This is pretty complex, so I'd like to have some eyes on it before I commit.
Comment #3
drunken monkeyAnd here is another one, with a
SearchApiSolrField::getRaw()method added for good measure.Comment #4
minoroffense commentedWhen I patch that against the latest dev the patch applies fine. But when I enable the module, I get the following:
This is from a fresh install of search api. I'm using the latest dev copies of search_api and search_api_solr
Comment #5
minoroffense commentedOh, I ran
Comment #6
drunken monkeyThanks a lot for helping me test, and thanks for spotting that error. Seems I forgot to remove the reference to that function in the install hook. Attached is a corrected patch. Please test again!
Comment #7
minoroffense commentedI'll be working on a Search API config for a client tomorrow. I'll give the patch a shot then.
Comment #8
spotzero commentedI've only done basic testing with a search view, however everything looks good and seems to be working.
Indexing, reindexing, clearing the index, and searching (with filtering and sorting) all worked for me.
I didn't test the install, but the update hook works.
Comment #9
drunken monkeyOK, thanks for testing!
Committed.
Comment #10
cpliakas commentedGreat work, guys!