4

How am I able to create a view using ApacheSolr as base in Drupal 7?

All I can see when creating a new View, is ApacheSolr localhost server which doesn't give me the fields that I need, found few links online but none of them helped! very confused!

I am using :

  • Apache 7.x-1.0-rc4
  • Drupal 7
  • Views 7.x-3.5
  • Apache Solr Search Integration 7.x-1.0-beta1
7
  • 3
    try the drupal.org/project/apachesolr_views module.
    – junedkazi
    Sep 25, 2012 at 20:51
  • Thank you but that only gives me local host server option, I dont know how to create a page with the fields that I need?
    – Luca
    Sep 25, 2012 at 20:52
  • I would for example lie to use Contextual filters to add other content fields to my search result as well but sadly it wont let me!
    – Luca
    Sep 25, 2012 at 22:03
  • 1
    In my experience apachesolr is good for search results, but if you want a good and complete interaction with Views you should use search_api
    – arrubiu
    Oct 2, 2012 at 9:07
  • 1
    solr search api for 7 is flaky in my experience, lots of stability issues. even worse, the facet api doesn't work so great with solr and search api in 7 either. Oct 2, 2012 at 18:58

4 Answers 4

3

The various answers here do not mention the apachesolr_views module, which has the advantage of working directly with Apache Solr Search Integration. The Search API Solr module requires a distinct setup, and if you want to use both integrations simultaneously, it's more complicated. If you already have Apache Solr Search Integration working for you, I suggest taking the simpler approach. You'll then get views right out of the box. Working view with apachesolr_views right out of the box

4

I add a full response.

If you want a full integration with Solr and Views you should use Search api with Search Api Solr (there several modules that work with Search Api, see the Search Api page).

You will be able to:

There are many usefule modules that work with Search Api: autocompletation, indexing files, create index on file taxonomies and users, spellcheck, sorts, ranges, saved searches etc.

Every day I use Search Api at work, for views and for default search, I think is the best solution.

1
  • Current Search Links (allowing individual search terms to be removed from a search) is another member of that family of modules worth knowing about. Be aware as others have said that the Search API stack is a bit flakey. There's only one module maintainer (!) and there are a few bugs, patches not committed, etc. Take some time to test thoroughly, and allow plenty of debugging time. When it works (which is most of the time), it's brilliant. Oct 4, 2012 at 22:44
0

I'm not sure I totally understand the nature of the question, but creating a view in 7 with Apache Solr works great for me. You have to first create an index and then when you go to create the new view the name of that index should show up in the list, ie "Show [ name of index ] sorted by..." . From there you can create a table view or whatever. If you are using Facet API then you can define facets on that index, which automatically creates blocks and you move those blocks into a region and have them only show up at the path that corresponds with the view you created.

0

You should switch to the Search API module.

This module provides a framework for easily creating searches on any entity known to Drupal, using any kind of search engine.

The Views capabilities are excellent.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.