Judging from the project page it appears that this module only works with Apache Solr Search Integration. We should test with Search API so that this widget is agnostic to the backend it is being used with.

Comments

nick_vh’s picture

Currently it is depending on a query type from the apache solr search integration to retrieve the info. (query_type_numeric_range)

cpliakas’s picture

Thanks, Nick. So if Search API implemented a numeric_range query type it could use this module? Or are there any other gotchas you can think of?

nick_vh’s picture

That should work then!

cpliakas’s picture

Status: Active » Postponed (maintainer needs more info)

Good stuff. Postponing pending conversations with Thomas since Search API needs to do some work in order for this task to proceed / be verified that it will work.

giorgio79’s picture

Version: » 7.x-1.x-dev

Would this be the replacement?
http://drupal.org/project/search_api_ranges

cpliakas’s picture

No, I don't see that project as being a replacement. The goal of Facet API is to create a framework where contributions are module-agnostic, so whether you are using Search API, Apache Solr Search Integration, core Search, Bob-X Search, whatever, the code should be able to be re-used. Therefore having modules that specifically depend on one project is against the overall goals and benefit of Facet API. For ranges and sliders, looks like we have some work to do to figure out how to meaningfully consolidate code and effort.

Thanks,
Chris

giorgio79’s picture

BobX search, lol.

Nice exaplanation! Consider putting this paragraph as a Goal section on the Facet API modules page, so that everyone will get it.

I was getting confused by all the search api contrib and Apache Solr contrib stuff.

Even some other Acquians are building an Apache Solr specific Geo search at http://drupal.org/sandbox/pwolanin/1497066 instead of working on a generic module like http://drupal.org/project/search_api_location

cpliakas’s picture

Consider putting this paragraph as a Goal section on the Facet API modules page, so that everyone will get it.

Great suggestion. I will make sure to refresh the project page more clearly stating this goal. It is kind of buried in the section that it explains how it integrates with all of the various modules, so based on your suggestion I will provide a "Goals" header that clearly defines this.

Even some other Acquians are building an Apache Solr specific Geo search at http://drupal.org/sandbox/pwolanin/1497066 instead of working on a generic module like http://drupal.org/project/search_api_location

True, but understand that at this time for D7 (pulling from the May 13, 2012 statistics), approximately twice as many people are using Apache Solr Search Integration as Search API Solr (3,664 / 1,830). In addition, Apache Solr Search Integration does provide an API compatible backport of the D7 version for D6, so the geo module could provide that functionality for the numerous people who are unable to leverage Search API based on the version of Drupal they are using. I'm not arguing for or against either project, I am just saying that forcing people to switch to Search API for geolocation would be telling thousands of people to drastically change their site's architecture.

Also note that I am an Acquian who got Acquia time to write the Facet API module, so we are very interested in providing generic solutions and consolidating the search community. I am also getting time to work on Search API Solr so that it can work with Acquia Search, which in turn will further align the efforts of the two communities. So just to be clear, we are very Search API friendly :-).

Thanks,
Chris

giorgio79’s picture

Sounds fab Chris. Yeah I totally understand the situation, and I would not like anyone being forced :). still an upgrade path would have been a viable solution as well for those on Apache Solr to be migrated to search_api_location. Anyway, I myself recently discovered search api and facet api, and they are definitely the way forward.

Hopefully the search api db backend will flourish since in itself it may be slow, but who uses it like that? Put memcachd, boost, varnish or whatever in front of it, and it will blaze past everything. Even faster than Apache Solr...

mollux’s picture

I have been working on a patch for search_api_facetapi to support numeric_range query types and it works very well :) I will contact Thomas to get the patch committed.

giorgio79’s picture

@mollux
Where it this search_api_facetapi module located?

@chris
Search API Ranges says, so it may be a viable solution:
"The development version currently depends on Facet API. Search API will soon fully switch to Facet API."

giorgio79’s picture

PS: I just installed search_api_ranges and it works like wonder as a facet (with db backend)! Lovely. I guess this module could merge into that one. :)

cpliakas’s picture

Search API Ranges says, so it may be a viable solution:

Excellent! Didn't know there was parallel effort going on here. To be honest I could care less which project is deprecated, I just want something that implements Facet API and is backend agnostic :-)

mollux’s picture

I agree that there should only be one implementation of facets with sliders.
And my opinion is (nevertheless I'm a fan of Search API) it should be in Facetapi slider, so it can be used for Apachesolr and Search API module.

I will try to create the patch for Search API this week, so it supports Facetapi slider module.
And the Facetapi slider module can be backend agnostic. Hurray :)

mollux’s picture

It took me a while to work again on this issue, due to other work and holidays...
But I made an issue in the issue queue of Search Api with my patch, see #1684808: Support for Facetapi Slider
So feel free to test it and give some feedback :)