Print

Print


A little edgy in #code4lib today about where we* are going with solrb
(the Ruby/Solr domain-specific language API), so we're going to add a
bit of process by fleshing it out via the solrb section of the Solr
wiki.  Below is the first draft, though I've revised it some since
then slightly.  Click the link to add your ideas.

Notice you can get e-mail notifications of Apache wiki changes,
though you'll have to sign up for the solr-commits e-mail list -
email a blank message to [log in to unmask] -
and you'll also see the gory details of svn commit messages (not only
in solrb/flare, but also to Solr itself).  Reviewing code commit
messages is a practice I highly recommend, for what it's worth.

        Erik

* we is us.  I'm really working hard on making this a collaborative
community-oriented effort.  Our pre-conference will hopefully consist
of a few folks that have gone along for the solrb/flare ride over the
next several weeks and will be literally experts in the domain by then.


Begin forwarded message:


> From: Apache Wiki <[log in to unmask]>
> Date: January 9, 2007 5:00:01 PM EST
> To: [log in to unmask]
> Subject: [Solr Wiki] Update of "solrb/BrainStorming" by ErikHatcher
> Reply-To: [log in to unmask]
>
> Dear Wiki user,
>
> You have subscribed to a wiki page or wiki category on "Solr Wiki"
> for change notification.
>
> The following page has been changed by ErikHatcher:
> http://wiki.apache.org/solr/solrb/BrainStorming
>
> New page:
> This is a straw-man pie-in-the-sky thinking on a Ruby Solr DSL:
>
> {{{
> class Book
>   attr_reader :isbn
>   attr_reader :title
>   attr_reader :subjects
>   attr_reader :authors
>   attr_reader :dates
>
>
>   include Solrable
>   solr_facet :subject
>   solr_facet :year do
>     self.dates.collect { |date| date.year }
>   end
> end
>
> # Search for full-text matches in the author* field
> Book.search_by_author("sekida")
>
> # Search for full-text matches in the title* field
> Book.search_by_title("zen")
>
> # Search for full-text matches as a boolean AND in author and title
> Book.search_by_author_and_title("sekida", "zen")
> }}}
>
> Other ideas?
>