I'm trying to create a faceted browser on the biblio content on my site. However, the Search API module in Drupal 7 doesn't seem to be able to index the fields in the database that are coming from the Biblio module.

Does anyone have any insight in how to do this (if it is possible) or, is there any possibility of this feature being added? We commonly use Search API to index content on the site so we can build faceted views to dive into the data.

Thanks much, great module!

Comments

rjerome’s picture

You're not the first to say they aren't indexed, but they should be.

You might want to check on the 'admin/config/content/biblio' page in the "Search" section to see if the "Re-/Index a biblio node when creating or updating." box is checked. If it's not, then the biblio data will only get indexed via cron runs.

By the way, I'm assuming you are using the 7.x-1.x branch, otherwise all bets are off.

Ron.

tobik-1’s picture

I would also like to index fields of the Biblio module using the Search API (not Drupal core search), but it seems impossible to me.

- When adding/creating an index an Item type "biblio" can not be chosen.
- When I use my existent index of Item type "node" I cannot add the biblio fields under "add related fields".
- As a result I cannot include biblio fields in the filters.

Is this integration of the Biblio and the Search API module not possible or am I missing something?
Any help appreciated!

rjerome’s picture

Sorry, I missed the fact that we were talking about the Search API here. I'll look into it.

mikemadison’s picture

I have a temp. work around for this, where I copy biblio fields into normal fields using hook_cron. It's messy, but it does put the content in a place where it is index-able.

The module basically just iterates through the Biblio nodes, grabs the stuff I want to index and moves it over. I have field permissions configured for these fields so that I never have to worry about a user updating the wrong keywords fields.

Like I said, messy, but a temporary solution that seems to be working.

azin’s picture

tobik-1’s picture

Thanks, biblio_search_api solved the problem for us. Now we just need to figure out how we can filter authors by drupal users (the connection in biblio doesn't seem to be sufficient).

azin’s picture

@tobik, we will be working on this, post a patch here if you find a solution?

I see I can index authors and keywords as fulltext and string, but guess they need to be treated differently?

tobik-1’s picture

Ok the problem seems to be that biblio_search_api only indexes the attributes in the biblio_fields table. The Biblio Author ID (or contributor id / cid) is stored in the biblio_contributor table, however. Can you adapt the module to index the cid, as well?

tobik-1’s picture

It turns out that I have thought too complicated. Filtering biblio publications by drupal users linked with biblio authors already works fine, when using author full name. Thanks for the module in #5!

azin’s picture

@tobik, This module works well with all data in biblio table, I am using it on a 100,000+ document site, keywords and authors are stored in linked tables, and the both don't work with facetapi.

Also, are you able to see biblio_facets as a Search API Field setting? I don't seem to be able to index Biblio Types.

mikemadison’s picture

The module in #5 seems to be working, although keywords and authors are a little wonky. Thanks for the post!

azin’s picture

I have a lot of errors like
Notice: Undefined property: stdClass::$biblio_tid in biblio_handler_field->set_label() (line 54 of /var/www/html/sites/all/modules/biblio/views/biblio_handler_field.inc).

azin’s picture

amitaibu’s picture

fyi, in Biblio 3.x the properties are converted to fields, so the integration with search API is for free.

azin’s picture

@Amitaibu will Biblio 3.x move to Drupal.org, and do you recommend migrating from 7.1x to 3.x already?

amitaibu’s picture

3.x is now in Drupal.org

Jaya M’s picture

I could use Features and Spaces modules to create faceted search option for biblio-1.x version. Followed steps from open scholar.

rcodina’s picture

Issue summary: View changes

Any news on this?

rcodina’s picture

Anyone uses 3.x-dev? Is it stable?

candelas’s picture

@rcodina, I doubt too if to actualize from 1.x.-dev to 3.x-dev...

mithaniel’s picture

sorry i have this problem. I need to Allow Biblio Fields to be indexed by Search API.

I cant understand the module i have to install(the links are broken) and how to appear the Biblio fields in my search API.
i cant find the module "biblio_search_api" for 7.x.1 from here https://www.drupal.org/project/2150745/git-instructions

I need help pls!!!

liam morland’s picture

Status: Active » Closed (outdated)

Bibliography Module 7.x-2.x is not being developed. If this issue applies to a maintained branch, please re-open and move it to that branch.