# Ruby.codefetch.com offers API and books search

**URL:** <https://rubytalk.org/t/ruby-codefetch-com-offers-api-and-books-search/21289>\
**Category:** ruby-talk\
**Created:** [3 October 2005 18:01 UTC](https://rubytalk.org/t/ruby-codefetch-com-offers-api-and-books-search/21289 "2005-10-03T18:01:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![cosmo](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@cosmo](https://rubytalk.org/u/cosmo)\
**Post date:** [3 October 2005 18:01 UTC](https://rubytalk.org/t/ruby-codefetch-com-offers-api-and-books-search/21289/1 "2005-10-03T18:01:47Z")

</div>

Greetings!

On Oct. 1 we pushed out a new version of Codefetch that supports search  
of the Ruby API as well as the publically available source code from a  
number of Ruby books. Try it out at [http://ruby.codefetch.com](http://ruby.codefetch.com)

With Codefetch you can search using punctuation as part of your query  
and you can use some handy regular expressions, such as .\*, \b, and \s.

Enjoy!

---

<div class="post-metadata">

**Author:** ![James\_Britt4](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@James\_Britt4](https://rubytalk.org/u/James_Britt4)\
**Post date:** [3 October 2005 18:34 UTC](https://rubytalk.org/t/ruby-codefetch-com-offers-api-and-books-search/21289/2 "2005-10-03T18:34:14Z")

</div>

cosmo wrote:

> Greetings!
> 
> On Oct. 1 we pushed out a new version of Codefetch that supports search  
> of the Ruby API as well as the publically available source code from a  
> number of Ruby books. Try it out at [http://ruby.codefetch.com](http://ruby.codefetch.com)
> 
> With Codefetch you can search using punctuation as part of your query  
> and you can use some handy regular expressions, such as .\*, \b, and \s.
> 
> Enjoy!

Nice. But why does it say "Ruby Rails", rather than simply "Ruby"?

And no API docs are returned when I search, for example, on 'REXML'

James

> **···**
>
> --
> 
> [http://www.ruby-doc.org](http://www.ruby-doc.org) - The Ruby Documentation Site  
> [http://www.rubyxml.com](http://www.rubyxml.com) - News, Articles, and Listings for Ruby & XML  
> [http://www.rubystuff.com](http://www.rubystuff.com) - The Ruby Store for Ruby Stuff  
> [http://www.jamesbritt.com](http://www.jamesbritt.com) - Playing with Better Toys

---

<div class="post-metadata">

**Author:** ![cosmo](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@cosmo](https://rubytalk.org/u/cosmo)\
**Post date:** [3 October 2005 19:31 UTC](https://rubytalk.org/t/ruby-codefetch-com-offers-api-and-books-search/21289/3 "2005-10-03T19:31:47Z")

</div>

> > But why does it say "Ruby Rails", rather than simply "Ruby"?

Really, it should say Ruby / Rails, and HTML CSS should be HTML / CSS.  
We mean to say that we include books on Rails in the index. We're  
working on adding the slash.

> > no API docs are returned when I search, for example, on 'REXML'

Right now we only index the core classes, not the stdlib. Sounds like  
we should include stdlib, eh? Shouldn't be a big deal-- I'll see what  
I can do.

- cosmo

---

<div class="post-metadata">

**Author:** ![cosmo](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@cosmo](https://rubytalk.org/u/cosmo)\
**Post date:** [3 October 2005 22:31 UTC](https://rubytalk.org/t/ruby-codefetch-com-offers-api-and-books-search/21289/4 "2005-10-03T22:31:46Z")

</div>

cosmo wrote:

> \>\>no API docs are returned when I search, for example, on 'REXML'
> 
> Right now we only index the core classes, not the stdlib.

It looks like indexing the stdlib would flummox our scanner because  
there are class names that are identical to core class names. Am I  
missing something, or are some classes simply documented twice, once in  
stdlib and once in core? An example of this would be the class  
"abbrev".

- cosmo

---

<div class="post-metadata">

**Author:** ![Austin\_Ziegler5](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/austin_ziegler5/32/1985_2.png) [@Austin\_Ziegler5](https://rubytalk.org/u/Austin_Ziegler5)\
**Post date:** [4 October 2005 00:22 UTC](https://rubytalk.org/t/ruby-codefetch-com-offers-api-and-books-search/21289/5 "2005-10-04T00:22:52Z")

</div>

How are you trying to index? You \*do\* realize that classes are  
completely open in Ruby, don't you, allowing stdlib to add new  
methods, etc. that aren't supported/in the C-based core Ruby?

And, please, as James said, it isn't "Ruby Rails". It's just "Ruby".  
Rails is just an application framework on top of Ruby. Ruby makes  
Rails possible, not the other way around.

-austin

> **···**
>
> On 10/3/05, cosmo \<spammable@codefetch.com\> wrote:
> 
> > cosmo wrote:  
> > \> \>\>no API docs are returned when I search, for example, on 'REXML'  
> > \>  
> > \> Right now we only index the core classes, not the stdlib.
> > 
> > It looks like indexing the stdlib would flummox our scanner because  
> > there are class names that are identical to core class names. Am I  
> > missing something, or are some classes simply documented twice, once in  
> > stdlib and once in core? An example of this would be the class  
> > "abbrev".
> 
> --  
> Austin Ziegler \* halostatue@gmail.com  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* Alternate: austin@halostatue.ca

---

<div class="post-metadata">

**Author:** ![Gene\_Tani](https://avatars.discourse-cdn.com/v4/letter/g/4491bb/32.png) [@Gene\_Tani](https://rubytalk.org/u/Gene_Tani)\
**Post date:** [4 October 2005 02:51 UTC](https://rubytalk.org/t/ruby-codefetch-com-offers-api-and-books-search/21289/6 "2005-10-04T02:51:48Z")

</div>

maybe run the ruby C source through your tokenizer/indexer and then we  
can compare to gonzui

Austin Ziegler wrote:

> **···**
>
> > On 10/3/05, cosmo \<spammable@codefetch.com\> wrote:  
> > \> cosmo wrote:  
> > \> \> \>\>no API docs are returned when I search, for example, on 'REXML'  
> > \> \>  
> > \> \> Right now we only index the core classes, not the stdlib.  
> > \>  
> > \> It looks like indexing the stdlib would flummox our scanner because  
> > \> there are class names that are identical to core class names. Am I  
> > \> missing something, or are some classes simply documented twice, once in  
> > \> stdlib and once in core? An example of this would be the class  
> > \> "abbrev".
> > 
> > How are you trying to index? You \*do\* realize that classes are  
> > completely open in Ruby, don't you, allowing stdlib to add new  
> > methods, etc. that aren't supported/in the C-based core Ruby?
> > 
> > And, please, as James said, it isn't "Ruby Rails". It's just "Ruby".  
> > Rails is just an application framework on top of Ruby. Ruby makes  
> > Rails possible, not the other way around.
> > 
> > -austin  
> > --  
> > Austin Ziegler \* halostatue@gmail.com  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* Alternate: austin@halostatue.ca

---

<div class="post-metadata">

**Author:** ![cosmo](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@cosmo](https://rubytalk.org/u/cosmo)\
**Post date:** [7 October 2005 16:26 UTC](https://rubytalk.org/t/ruby-codefetch-com-offers-api-and-books-search/21289/7 "2005-10-07T16:26:55Z")

</div>

> > You \*do\* realize that classes are  
> > completely open in Ruby, don't you, allowing stdlib to add new  
> > methods, etc. that aren't supported/in the C-based core Ruby?

No I didn't, (I've haven't yet had the pleasure of using Ruby), and in  
fact I didn't understand what you meant until right now. Hmmm. I'll  
have to see how our indexer can handle this situation.

In the meantime, the core Ruby api is indexed as is the Ruby on Rails  
API and also, as an experiment, the REXML API. Also, the format of api  
search results has been adjusted to better accommodate long class  
names.

The category is now Ruby / Rails to indicate that our search includes  
info on pure Ruby as well as Ruby on Rails.

These changes went live Friday morning, Oct 7, at  
[http://ruby.codefetch.com](http://ruby.codefetch.com)

- cosmo
