<pre>I changed XMLAnalyzer so that it does not inherit from Ferret::Analysis::Analyzer. That seemed to have no effect. <br><br>I successfully ran ferret-browser.As shown below, I am using two fields - :file and :content. When I browse through <br>
the "file" term everything appears fine; all of the filenames are found. The "content" term on the other hand is<br>empty. Apparently I'm not stuffing the tokens in the index at all. One question I have is exactly what should happen<br>
in the Tokenizer#text method and when will this method be called? <br><br>Thanks,<br>John<br><br><br>=====<br>index = Index::Index.new(:analyzer => XMLAnalyzer.new(),<br> :path => options.indexLocation,<br>
                          :create => true)<br><br> Find.find(options.searchPath) do |path|<br> if FileTest.file? path <br> File.open(path) do |file|<br> puts "Adding file to index: " + path<br> index.add_document :file => path, <br>
:content => file.readlines<br> end<br> end<br> end<br>=====<br><br><br><br><br>Hi!<br><br>On Wed, Apr 23, 2008 at 01:59:32PM -0400, S D wrote:<br>><i> [unfortunately I received my messages as a batched digest...hence, I'm<br>
</i>><i> forced to respond in a new thread. I've requested the administrator to<br></i>><i> change my config to receive each message on this list. Sorry for any<br></i>><i> inconvenience]<br></i>><i> <br></i>><i> Thanks for the response below. Here is XMLAnalyzer (currently I'm not using<br>
</i>><i> the stop or lower case filter):<br></i>><i> <br></i>><i> class XMLAnalyzer < Ferret::Analysis::Analyzer<br></i><br>could you try if not inheriting from Ferret's Analyzer changes anything?<br>At least I usually don't do that in my analyzers.<br>
<br>[..]<br><br>><i> I just tried running ferret-browser by pointing to an index created with<br></i>><i> StandardTokenizer and got the error below in Firefox. Is there any<br></i>><i> configuration that is necessary? Presumably the defaults should work.<br>
</i>[..]<br>><i> Internal Server Error No such file or directory -<br></i>><i> /usr/local/lib/site_ruby/1.8/ferret/browser/views/error/index.rhtml<br></i>><i> ------------------------------<br></i>><i> WEBrick/1.3.1 (Ruby/1.8.6/2007-06-07) at <a href="http://127.0.0.1:3301">127.0.0.1:3301</a><br>
</i><br>works just fine here (Ferret 0.11.6 / Ubuntu), just tried it out. The<br>location from the error message looks a bit strange to me, how did you<br>install ferret?<br><br>Cheers,<br>Jens<br><br><br>-- <br>Jens Krämer<br>
webit! Gesellschaft für neue Medien mbH<br>Schnorrstraße 76 | 01069 Dresden<br>Telefon +49 351 46766-0 | Telefax +49 351 46766-66<br><a href="http://rubyforge.org/mailman/listinfo/ferret-talk">kraemer at webit.de</a> | <a href="http://www.webit.de">www.webit.de</a><br>
<br>Amtsgericht Dresden | HRB 15422<br>GF Sven Haubold</pre>