Closed (fixed)
Project:
Node displays
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Dec 2009 at 07:36 UTC
Updated:
27 Apr 2010 at 14:26 UTC
Just tried DS and ND... Awesome stuff!
There seem to be a great potential for use with ApacheSolr Views, which currently does not support CCK fields. By adding a "Display suite" row style to views with the 'apachesolr' base, and implementing a solution similar to what is currently done in ND Search (serializing the full node and storing it in Solr), it seems like we could retrieve full nodes from within ApacheSolr Views, and control their display through a build mode layout.
However, I'd rather store the node in a non-indexed field, instead of 'tm_node'. There are no non-indexed dynamic fields in ApacheSolr's schema.xml at the moment, but that could easily be fixed.
Comments
Comment #1
swentel commentedWe've been experimenting with this at work already and have a proof of concept ready - integrated in nd_search for now. I'll post the patch here somewhere next week for further testing !
Comment #2
David Lesieur commentedGreat! I'm looking forward to testing your patch!
Comment #3
Scott Reynolds commentedDid you try this? #455742: Node row plugin. Sems really strange to serialize a node anywhere. You can already control build mode layout. There is a patch in Views by dereine to allow it to alter() row plugins and inject itself that way.
No need to index a serialized node....
Comment #4
Scott Reynolds commentedFixing title :-D its two words
Comment #5
David Lesieur commented@Scott: I had missed that, and the solution works nicely. Thanks for pointing this out!
Support for the Display suite row style would still be useful though, making it easy to add custom build modes. Different Apache Solr views will often need different layouts (at least in some projects) needing the full nodes. Having just the Teaser and Full modes may not be enough.
Yeah, the serialization thing is probably not desirable. Unless we really want to ban SQL queries from the view? That's not a requirement in my projects...
Comment #6
Scott Reynolds commentedBuild modes are set up in CCK and they will show up there. So you can set them up. I do not know the specifics of Node Display.
Comment #7
swentel commentedI've removed the 'base' property from ds.views.inc (display suite module) so in theory (haven't tested it yet) the row plugin should show up also when creating a view with the Apache Solr Views module.
ND search is mostly designed to:
a) take over the search results page when you are searching with the apache solr module itself
b) index the cck fields (and soon all other fields when necessary)
so, in theory (again not tested), it shouldn't be necessary to enable nd_search at all, only display suite and node displays. We're busy updating nd_search 6--2 branch to apache solr 6--2 also, so I'll have more info later this week - hooray for christmas holidays on time to experiment :)
As for the serialized part: we still like this a lot at work because of the huge performance boost - Take a look at this page: http://www.boek.be/boek/godverdomse-dagen-op-een-godverdomse-bol : It has 2 blocks on the right which loads results from apachesolr. Because of the way that display suite works right now (we can't use fields right now) we would have to load every node for simply having to display only the title and the author. This is a bit of a flaw right now, however, we are working on a patch that would also support the 'fields' row plugin from views with our modules. That would, in fact, rule out the complete serializing idea we have now. That patch would include a setting if you'd want to use that serialized field or not.
But first things first, let me se now if the row plugin shows up or not :)
Comment #8
domidc commentedI ve been testing ds, nd, apachesolr and apachesolr_views and display suite plugin shows up but the build modes are empty.
Any luck making this work yet?
Comment #9
swentel commentedCommitted to core of nd module. Views apachesolr full node works fine - need to test a bit further once fields are mature enough for Apache Solr.
Comment #10
swentel commentedComment #11
domidc commentedI conform this works with other build modes too. I also tested the advanced build mode selection with views 3 and it works too. Great!