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

Tim Jones Toronto’s picture

Hi 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?

naeluh’s picture

Category: feature » support

Hi Tim,

Okay I am going to try that and report back here.
Thanks !!!

Nick

naeluh’s picture

Ok 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

Tim Jones Toronto’s picture

Hi 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?

naeluh’s picture

@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.

Tim Jones Toronto’s picture

Cool Nick, it's all good stuff (usually!).

anu17’s picture

Priority: Normal » Critical

Hi 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.

Renee S’s picture

Priority: Critical » Normal
stone_d’s picture

Im 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

stone_d’s picture

ok - well, its working now ... maybe it took some time for the dev-Version to be present :)

MiroslavBanov’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev
Issue summary: View changes
Related issues: +#2189721: Improve D7 documentation for Apachesolr Views
MiroslavBanov’s picture

Status: Active » Closed (duplicate)