Displaying 20 results from an estimated 122 matches for "searcher".
Did you mean:
searched
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::...
2008 Mar 05
0
Index Searcher Causes GC Memory Error: "irb: double free or corruption"
My linux Ruby application is using Ferret 0.11.4. I created my own class IndexSearcher to contain
the Searcher of multiple directories. If I do not have the searcher.close called, the end of
runner/console or runner/server will pop out with system error:
*** glibc detected *** irb: double free or corruption (fasttop): 0x0a51d6c0 ***
======= Backtrace: =========
/lib/libc.so.6[0x63...
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 => ''./index'') # works
searcher = Searcher.new("./index&q...
2006 Oct 31
3
No search results using Searcher
...n 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 I don''t get
any results. I tried the following code:
queryparser = QueryParser.new()
searcher = Searcher.new(path)
queryparser.fields = searcher.reader.fields
searcher.search(queryparser.parse("something"))
I index all my documents as follows:
index = Index::In...
2007 Feb 01
2
Searcher do not work or I do not work
...:content => ''Good excellent program''
}
index << {:location => ''local'',
:title => ''Programming Rubyist'',
:content => ''Extra ordinary program''
}
index.close()
searcher = Searcher.new(''./index'')
query = TermQuery.new(:content, ''Good'')
searcher.search_each(query) do |id, score|
doc = searcher[id]
puts "Document #{id} found with a score of #{score}"
puts doc[:content]
end
--
Posted via http://www.ruby-forum...
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 B is updated by AAF, RDig.searche...
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 thinking of "warming up" the...
2004 Aug 06
0
Harvest lots of E-mail addresses quickly !
...rderColor=#0000ff width="90%"><FONT color=#ff0000
face="Arial Black"
size=6> Want
To Harvest A Lot Of Email Addresses In A Very Short Time?</FONT>
<B><FONT color=#0000ff face=Arial size=4>Easy Email
Searcher</FONT><FONT color=#ff00ff face=Arial size=4> is
a powerful Email software that
harvests general Email lists from mail servers </FONT><FONT
color=#0000ff face=Arial size=4>Easy Email Searcher </FONT><FONT
color=#ff00ff fa...
2007 Mar 01
2
FerretHash
...er
@writer.close
@writer=nil
end
def close
@writer.close
@writer=nil
@name=nil
end
def destroy
name=@name
close
`rm -r #{name}`
nil
end
def path
@name
end
def [](key)
reader=Ferret::Index::IndexReader.new(@name)
searcher=Ferret::Search::Searcher.new(reader)
td=searcher.search(Ferret::Search::TermQuery.new(:key, key), :limit=>1)
case td.total_hits
when 0:
when 1: result=reader[td.hits.first.doc][:value]
else fail
end
searcher.close
reader.close
return result
end...
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 p...
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 problem with my environments or the problem lies in
ferret...
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.n...
2006 May 16
1
Passing text from an rhtml input to a controller
...nd
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
searcher.search_title.value or document.searcher.search_title.value the
error text complains about the first word I use. What would go where
the ???? is?
<form name="searcher">
<input style="font-size:20" size="50" name="search_title" type="text&q...
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?
...index << {:title => ''a few good men'', :language => ''en''}
index.analyzer = Analysis::StandardAnalyzer.new([''men''])
index << {:title => ''a few good men'', :language => ''nl''}
index.close
searcher = Index::Index.new(:path => PATH)
puts searcher.search(''*:men AND language:nl'').total_hits
#=> 1
i''d expect zero results, as ''men'' is a stopword at the time of indexing
with language:nl. is this a bug or a lack of understanding on my part.
a work...
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 ?
Jean-Christophe Michel
--
symetrie.com
Better Nested S...
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