I''ve read the O''reilly short cut and I can''t figure out how to display the index for testing purposes and view documents and fields. Also, I''m planning on creating an index of www html documents. Is there a preference between using the ferret file system and a mysql database? -- Posted via http://www.ruby-forum.com/.
Anyone? Just to provide more information - I want to make sure that the index is getting generated the way that I want it to be, and so I figured that the best way to check that would be to examine the index itself. Any help would be greatly appreciated. -- Posted via http://www.ruby-forum.com/.
On 2007-10-02, at 5:14 AM, Eggman Eggman wrote:> Anyone? > > Just to provide more information - I want to make sure that the > index is > getting generated the way that I want it to be, and so I figured that > the best way to check that would be to examine the index itself.I''m not quite sure how we can help you. But maybe as a start, take a look at the index by using the ferret-browser .. starting from 0.14 on, you''ll have a ferret-browser script that you can start by pointing it to an index ... like that: bash$ ferret-browser my/index/directory [2007-10-02 08:56:52] INFO WEBrick 1.3.1 [2007-10-02 08:56:52] INFO ruby 1.8.6 (2007-03-13) [i686-darwin8.10.1] [2007-10-02 08:56:52] INFO WEBrick::HTTPServer#start: pid=1780 port=3301 then use your browser on http://localhost:3301 to examine you index. Ben
Ben - Thanks, this helps. From your response, I gather that people don''t really examine the index itself. How then, do people typically test to make sure that they have the correct index structure and that documents are getting added to the index correctly? Suppose I want to add document titles to a ''title'' field. How does one generally confirm that that''s happening? Appreciated. -- Posted via http://www.ruby-forum.com/.
Well.. i do something like that: http://bugs.omdb.org/browser/trunk/test/unit/movie_ferret_index_test.rb http://bugs.omdb.org/browser/trunk/test/unit/person_ferret_test.rb but i don''t test each ferret fields separately .. i guess that depends on your app .. i just test some critical fields .. but not everything .. Ben On 2007-10-02, at 3:23 PM, Eggman Eggman wrote:> Ben - Thanks, this helps. From your response, I gather that people > don''t > really examine the index itself. How then, do people typically test to > make sure that they have the correct index structure and that > documents > are getting added to the index correctly? Suppose I want to add > document > titles to a ''title'' field. How does one generally confirm that that''s > happening? > > Appreciated. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ferret-talk mailing list > Ferret-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/ferret-talk