Hello,

I am using views 3 alpha1 and I am not able to build a view with apache solr as the based table of the view. I have reinstalled the Views Solt module and hav cleared the views cache.

I have attached screen shot to better illistrate what I am talking about

Any suggestionss?
G

Comments

Scott Reynolds’s picture

I have just cvs updated to the very latest Views3 and it does indeed work.

This might be causing an issue

/**
 * Implementation of hook_views_api().
 */
function apachesolr_views_views_api() {
  return array('api' => '3.0-dev');
}

You can try changing that to 2 instead of '3.0-dev'. Doing that should work. The reason I set the api high is so people actually uses Views3, I have found people don't always follow instructions :-D

If that does work, then I will need to adjust that string.

gsvitak’s picture

thanks that worked... I changed the api statement in the module file and everything is fine..

Greg

Scott Reynolds’s picture

Title: apache solr views not available for selection when building a new view » Fix Views API version to properly restrict to Views3 alpha versions

Updating the title so I can so it can be worked on.

Remon’s picture

Hi there
Although I'm already using views 3.0, I installed the module to find that there is no views type "Apachesolr view", after an hour of debugging or so I figured out that the declared api version is (strangely) '3.0-dev'!, which does not exist in any of views 3 versions (dev, alpha1, alpha2 and alpha3) cause the version declared there till now is '3.0-alpha1'.
I think that changing api version to 3.0-dev is not the best decision, we should stick to version 2.0 till version 3.0 is released.

Scott Reynolds’s picture

we should stick to version 2.0 till version 3.0 is released.

Problem with that is people create issues saying "Apache Solr created this huge database error". And its because they used it with Views2.

Scott Reynolds’s picture

Status: Active » Postponed

This is now done intentionally to prevent the use of any of the alpha versions. and this because: #790306: Undefined method init_pager() and the pager system isn't in an Alpha version of Views yet.

Scott Reynolds’s picture

...

kenorb’s picture

Issue summary: View changes
Status: Postponed » Closed (outdated)

Version 6.x is no longer supported due to Drupal 6 End of Life. For Drupal 8.x, use Search API Solr Search instead.