Hi all

Sorry for the somewhat vague question but I have an urgent task to do on Monday.

I'm looking for some example code for doing a Solr search from my own module which I'm converting from using do_search(). I basically want to submit a query and get back either enough node data directly (nid, title, author, created) or at least a list of node ids.

I think I see how to do it but it would be nice to see an example which I haven't been able to find.

I assume I build a query with apachesolr_drupal_query and then call apachesolr_do_query.

Am I on the right track? Is there anything else I really need to know? My queries are simple one or two words or phrases sometimes with an OR. Results should be limited to about 50.

Thanks

Comments

nick_vh’s picture

http://www.nickveenhof.be/blog/drupalcamp-lisbon-2011-apache-solr-presen...

There is an example module for D6 included in this blogpost. Hope it helps?

pwolanin’s picture

Status: Active » Fixed
icosa’s picture

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.