search for: searchers

Displaying 20 results from an estimated 122 matches for "searchers".

Did you mean: searcher
2008 May 09
1
Searcher Explain
Hi, I am unable to use the Searcher''s explain method. Anytime I call it, I get Segmentation Faults and it kills the process I have running my Rails site. Has anyone else had this problem? Here is some code I am trying to use it in... search = Search.create(:query => query) @quotations = [] searcher = Ferret::Search::Searcher.new("index") # FerretConfig::INDEX bq =
2008 Mar 05
0
Index Searcher Causes GC Memory Error: "irb: double free or corruption"
.../usr/lib/libruby.so.1.8(ruby_stop+0x1d)[0xc2c3ad] /usr/lib/libruby.so.1.8[0xc372c1] irb[0x804868d] /lib/libc.so.6(__libc_start_main+0xe0)[0x5e5390] irb[0x8048581] Here is the code of my class. Any sign of what is wrong with the memory handling? class IndexSearcher attr_accessor :searcher, :sub_searchers, :object_type # @param paths [Array of String] full local paths def initialize( object_type, paths ) # Would''ve used this way since it''s simpler and said by author to be faster; but invalid paths will break this entirely # self.searcher = Ferret::Search::Searcher.new(Ferre...
2007 Jan 29
1
Segmentation fault in Search::Searcher#highlight
I''m using ferret 0.10.14 in Linux Fedora 3. When I do highlight with Index::Index#highlight, it works well. But, doing the same test with Searcher#highlight, [BUG] Segmentation fault occurred. Here''s my test code. require ''rubygems'' require ''ferret'' include Ferret::Search #searcher = Ferret::Index::Index.new(:path =>
2006 Oct 31
3
No search results using Searcher
I just started using Ferret and I successfully indexed some documents. I can search this index using the following code: index = Index::Index.new(:path => path) index.search_each("something") do |doc, score| print "##{doc} #{index[doc][''url'']} - #{score}" print "\n" end However, when I try to use Search::Searcher and QueryParser
2007 Feb 01
2
Searcher do not work or I do not work
Hi. I want to learn more about ferret. So I downloaded ferret-0.10.14 and write a simple test script Only query = TermQuery.new(:content, ''program'') gives result. If I change ''program'' with ''Good'' or ''Extra'' -> no result and searching on (:title, ''Ruby'') -> no result Strange, Strange Here is the
2007 Jul 29
7
RDig and AAF playing together
I have a site with two indexes. Index A is created offline by RDig and queried from the web via RDig (specifically, RDig.searcher.search). Index B is managed by AAF with :remote => true. Simple enough. However, I need to query both indexes from RDig. Usually this is ok, as I modified RDig to accept an array of search_paths with an element for index A and index B. However, when Index
2006 Aug 28
12
Help with Multiple Readers, 1 Writer scenario
Hi, I''m building a web server application using Ferret [thanks so much Dave], Mongrel and Camping which works fine servicing one request at a time, but serialises searches if more than one request arrives, so I''d like some advice please about the best way to use multiple readers and one writer. Some background ... query requests which in my case are always read only, arrive via
2006 Aug 27
6
how to get the words of a query
Hi, Using aaf to search pages, I wanted to present excerpts from the texts even when more than one term was used in the search. I came to some results, despite the difficulty caused by Unicode+ruby. The last problem I''m faced is to get the query words, without the logical articulation chars if any. Is there a clean way to get them ? -- Jean-Christophe Michel
2007 Mar 05
2
Warming up a new Searcher/Reader (Ferret 0.10.9 win32)
Hi, I have a largish index [700MB] which is updated from time to time, requiring me to close and recreate the Ferret::Search::Searcher to use the latest index. My problem is that the first few searches on the new index are slow [by comparison to before the close/recreate], I''m guessing because the new index is being loaded into RAM by my OS and into Ferret as needed. I''m
2004 Aug 06
0
Harvest lots of E-mail addresses quickly !
Dear icecast-dev , <BODY bgColor=#ffccff> <TABLE border=0 cellPadding=0 cellSpacing=0 width=475> <TBODY> <TR> <TD align=middle vAlign=top></TD></TR></TBODY></TABLE> <TABLE> <TBODY> <TR> <TD width="5%"></TD> <TD bgColor=#b8ecff borderColor=#0000ff width="90%"><FONT
2007 Mar 01
2
FerretHash
Dave, thank you so much for the 0.11 release(s). You have solved many problems for me. As part of my appreciation for your good works, I am offering up for public consideration a silly little class that I wrote. (Code is below.) This class offers a simplified Hash-like interface to (a very restricted subset of) Ferret. Hence I call it FerretHash. FerretHash comes with its very own pet Ferret
2015 May 20
1
about use 'xapian-replicate'
hi, the xapian-replicate has a parameter: --reader-time. I see the help ,means ,if there has searcher open the Database, then xapian-replicate will wait the searcher done. but the xapian-replicate how to know there has a searcher is using the Database. How do I open the database when I search? now I open the database like this: Xapian::Database db(dbpath); is that correct ? -------------- next
2007 Sep 12
2
ported index from one machine to another
Hi, I built an index on a free bsd machine using ferret and then ported the index to another machine. While searching from that copied index the searcher generates a file not found error. I have set all the permission right and the files do exist in the directories.on creating index from local machine the searcher finds the index. could any body please tell what might be the problem. Is it a
2007 May 02
1
MultiSearcher Results Question
If searching multiple indexes with a single searcher is there anyway to identify which index a resulting doc is stored in? i1 = Ferret::I.new i2 = Ferret::I.new i1 << {:id=>1,:text=>"random stuff"} i1.commit reader = Ferret::Index::IndexReader.new([i1.options[:dir],i2.options[:dir]]) searcher = Ferret::Index::IndexSearcher.new(reader) query =
2006 May 16
1
Passing text from an rhtml input to a controller
Hello, I would like to allow people to type some text into a webpage and then have that text passed to the controller (e.g. for use by a search routine). The following code has an input box in a form. What would I put in the "title" parameter to have that passed to the controller? When I put in a constant string it works but when I put in things like
2006 Aug 24
8
installing ferret
I am trying to test drive ferret on a ubuntu dapper installation. I have a ferret-test.rb file like: ----begin--------- require ''ferret'' include Ferret index = Index::Index.new(:path => ''/opt/search-index'') ----end----------- When i issue: ruby ferret-test.rb, I get: ferret-test.rb:1:in `require'': no such file to load -- ferret (LoadError)
2006 Oct 10
4
Need help for coding an extension to ferret
Hi, i''m working on a project using Ferret for indexing it''s datas. I''m very happy with it but i need to code an extension to implement a .to_json method to TopDocs class, because ruby''s json implementation is really really slow... It''s my second (the first was the tutorial :/ ) ruby C extension, so i''m not really at ease with ruby C
2007 May 09
3
bug when assigning new analyzer?
require ''rubygems'' require ''ferret'' include Ferret PATH = ''/tmp/ferret_stopwords_test'' index = Index::IndexWriter.new(:path => PATH, :create => true) index.analyzer = Analysis::StandardAnalyzer.new([]) index << {:title => ''a few good men'', :language => ''en''} index.analyzer =
2006 Sep 03
9
using highlight from aaf
Hi, I''m trying to use highlight ferret method with trunk aaf and 0.10.1 ferret. In my search display I use: Myindexedclass.ferret_index.searcher.highlight(@query, result_line.id, :content) * searcher is a protected method; how can I access to the searcher from aaf ? * is the doc id in aaf the same as my model id ? * is the first param, query, the string query or the query object ?
2006 May 24
3
Offline indexing with Drb, online using index in Rails?
I have a Rails application where I need to search. Every time an update happens to something I need to update the index for the changed and related document. As I currently have to run on Windows (and therefore can''t use the native extension) it is quite slow to index sometimes and the user have to wait a couple of seconds for the save operation to return. A thought is to put this