Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am looking for a way to integrate statuses with Apache Solr to be able to search for statuses.
I found some post's in D6 issue queue but the information wasn't very helpful.
Has someone done anything similar?
Thanks,
Francisco
Comments
Comment #1
IceCreamYou CreditAttribution: IceCreamYou commentedI think that the Apache Solr module is designed to search for entities. Once we make Statuses entities, it should be able to search them using Apache Solr views.
I could be wrong about this though -- I don't know much about Solr.
Comment #2
chicodasilva CreditAttribution: chicodasilva commentedFor what I've searched (Search API) there is also the possibility to consider statuses a non-entity and implement the class for a new non-entity datasource.
However, the documentation for implementing this use case, is not much.
Comment #3
nadav CreditAttribution: nadav commentedSubscribing
Comment #4
chicodasilva CreditAttribution: chicodasilva commentedAfter some research this can be done with Search API.
There are 2 important steps:
Implementing your own class of:
class StatusesDataSourceController extends SearchApiExternalDataSourceController {}
In hook_statuses_save() index the status:
Comment #5
IceCreamYou CreditAttribution: IceCreamYou commentedPatches welcome :)
Comment #6
Fayna CreditAttribution: Fayna commentedI would love to see a patch of this also!!
Comment #7
chicodasilva CreditAttribution: chicodasilva commentedAvailable a first draft version at https://github.com/chicodasilva/statuses_solr
Comment #8
IceCreamYou CreditAttribution: IceCreamYou commentedThank you, chicodasilva. I added your link to the module's project page under "useful modules."