Download & Extend

Integrate API full text search into the ApacheSolr setup

Project:API
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work

Issue Summary

You can currently search for function name, which is helpful if you know what you're looking for, or if you know what one word in a function is, but doesn't help you at all for finding things like form API properties referenced in documents like http://api.drupal.org/api/4.7/file/developer/topics/forms_api_reference....

Not sure what the answer here is; if each file should be imported as a node? But I just came across a very frustrated developer who missed the Form API reference entirely because of this.

Comments

#1

Title:API results need to be searchable.» Full text search

Yes, I have seen this be a problem before. API should support full-text searching with search.module.

#2

Yes, full-text searching in search.module will really improve the learning time of the developers. This makes their learning more easy.

#3

Version:master» 6.x-1.x-dev
Priority:normal» critical

Integrated search with api.drupal.org is called for in the MBD redesign. We will be using Apache Solr for searching Drupal.org.

#4

Subscribe. I will help write a module that integrates with Solr for this.

#5

Title:Full text search» Integrate API full text search into the ApacheSolr setup

#6

Priority:critical» normal

#7

Status:active» needs review

Here.

AttachmentSize
84207-api-full-text-search.patch 8.12 KB

#8

Here is how it looks like:

Facetted-API search.png

#9

Just took a quick look - "pseudo-node"?

#10

Comments really like having nids, so we have well-hidden nodes.

#11

One thing we will have to do is to store the object_name in a tokenized form, in addition to the string form. Right now, neither "node_load", "node load" nor "load node" match "node_load_multiple".

#12

@Damien - I'm surprised those don't match - what tokenizer are you using? Or you mean it's not tokenized at all - so it should be in a text field instead?

#13

@pwolanin, not it's a string field right now. I think it make sense to keep both a text field and a string field, and to boost the string field to the maximum to boost exact matches. What do you think?

#14

Also linked from the Redesign project #661708: Meta issue for misc modules: Drupal, OpenID Provider and API because this issue was tagged 'drupal.org redesign'

#15

I've linked this from the Redesign project #661708: Meta issue for misc modules: Drupal, OpenID Provider and API because this issue was tagged 'drupal.org redesign'

#16

Would also be nice if API.module actually implemented hook_search so it would get its own 'API' tab on the search page. Plus then it would integrate better with OpenSearch plugins which are handy for developers.

#17

Status:needs review» needs work

API has a concept of projects now and the schema has settled. It would be a good time to tackle this.

#18

untag

#19

subscribing