I am trying to create an apache solr view like on go chic or go home and I am struggling to get even one view made? When I am selecting a what to show in the view. I am selecting Apache Solr localhost server ? but then I can't output my view with titles? I read the suggesting on the projects front page about setting up an argument and using exposed filter but I have no way of setting a content type when I use the Apache Solr localhost server as the view content to show ? I can provide any help or code or images to show more of what I have top get this working. I have been able apache solr to work and have facet api working I am just trying to integrate with views to attach an exportable xls doc from the search results.
Let me know if I can provide any other info
thanks,
Nick
Comments
Comment #1
Tim Jones Toronto CreditAttribution: Tim Jones Toronto commentedHi Nick,
Can you select 'Apache Solr: label' as your field and see if you get your Title output?
Apache Solr: Snippet can return the body.
Apache Solr: bundle returns type (e.g. page, article etc.)
The best way is to output ALL fields as a test and see what you need.
Hope this helps?
Comment #2
naeluh CreditAttribution: naeluh commentedHi Tim,
Okay I am going to try that and report back here.
Thanks !!!
Nick
Comment #3
naeluh CreditAttribution: naeluh commentedOk so that totally worked.
Now what I am trying to figure out is how to attach another view.
I wanted to output the list to xls document is that possible within the structure of the apache solr views ?
Basically I wanted to add this functionality to the search http://drupal.org/project/views_export_xls
Cause I don't see it as a possible formatter anymore ?
thanks again for all your help
Nick
Comment #4
Tim Jones Toronto CreditAttribution: Tim Jones Toronto commentedHi Nick! Glad you got the fields to show up. I had a quick go with views export XLS for you:
- Add a new "Feed" display to your view.
- Change its style to "XLS Feed".
- Selected 'Apache Solr: label (label)' as a test field.
- Set the Path: /xlsout (view path example).
And when running the view page it saved an XLS file and it opened fine in Excel :) Is this sort of what you wanted?
Comment #5
naeluh CreditAttribution: naeluh commented@Tim Jones
That's great !
I am going to try that for sure !!
My bad I thought it was a formatter .. its a display style unto its self.
Comment #6
Tim Jones Toronto CreditAttribution: Tim Jones Toronto commentedCool Nick, it's all good stuff (usually!).
Comment #7
anu17 CreditAttribution: anu17 commentedHi Tim,
actually when i selected apache solr local host in views i can only select apache solr snippet...i didn't see Apache Solr: label.
i actually want to create a search list view which consists of various field including title and want to expose apache solr search to the user.
How should i achieve it?
I'm using drupal 7.
Comment #8
Renee S CreditAttribution: Renee S commentedComment #9
stone_d CreditAttribution: stone_d commentedIm using Apache Solr 4.3 and Drupal 7 and having the same problem as anu17:
I just see the "Apache Solr: Snippet" in my views-settings and no "Apache Solr: label" even i set up the facets and everything in the Solr-Settings.
Anyone can help?
Thanks and regards,
Fabian
Comment #10
stone_d CreditAttribution: stone_d commentedok - well, its working now ... maybe it took some time for the dev-Version to be present :)
Comment #11
MiroslavBanov CreditAttribution: MiroslavBanov commentedDuplicate of #2189721: Improve D7 documentation for Apachesolr Views.
Comment #12
MiroslavBanov CreditAttribution: MiroslavBanov commented