Displaying 20 results from an estimated 8000 matches similar to: "Search::Xapian really slow compared to C++ Xapian"
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
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 Jan 05
3
Confused about Search Results
Hi everyone,
I''m pretty new to Lucene and Ferret, so I feel that this is most likely
myself not completely understanding the correct way to do this. I haved
indexed ~2200 text files (of various sizes), and I am now running
searches on the index to get a feel for Lucene and Ferret.
In my first program, which is using Lucene I search for ''influenza'' and
get the
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 =
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 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
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
2006 Oct 25
4
Search result inconsistencies due to indexing
I seem to be having problems with getting my searcher to be consistent
while indexing. I am running the latest version of ferret (0.10.13) and
I am using the Searchable plugin. Currently the way it indexes is by
using a callback in the model of either after_update or after_create to
index the fields that I have setup to be indexed.
Right now I update the index about once every 4 or 5
2020 Oct 19
4
v2.3.11.3 solr plugin search via MUA fails to match accented ascii characters; cmd line exec of `doveadm fts lookup` PANICs (assertion failed)
On 10/19/20 1:18 AM, John Fawcett wrote:
> I would recommend you to redo the tests after correcting the
> configuration. To be doubly sure you can include accented and unique non
> accented text in the same email and search for both. If the non accented
> text is found you know you've searching against the updated index and
> the fact that accented text is not found is not
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
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 Dec 07
8
crash on repeated search
I have found another crash in ferret; this one just uses a regular
search. It''s similar to an issue reported by Matt Schnitz a while ago,
but unlike his, mine does not go away if I turn off omit_norms. It does
go away if I turn on the garbage collector more often, but I''m not sure
that''s a stable workaround under the circumstances.
This one isn''t a
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 ?
2007 Mar 07
0
A note about #search vs #search_each
Hi,
I just "solved" an issue which I mentioned on this list many moons ago,
regarding searches somehow being serialized, such that a long search
would cause others to wait noticeably.
Anyhow, after coding both :limit and applying homegrown thread time
limit monitoring, I discovered that Searcher#search_each uses
rb_thread_critical = Qtrue whereas Searcher#search doesn''t.
I
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
2006 Aug 26
8
[0.10.0] Index#search is not thread safe ?
This script (http://pastie.caboo.se/10371) give this result :
"1"
"0"
"0"
"0"
Why the other thread does not have the same result ?
Maybe, it''s not the correct way to use the index in a multi threaded
environement but I don''t know how to do.
Any ideas ?
--
Posted via http://www.ruby-forum.com/.
2015 Feb 24
0
FTS Solr = No search results for Body Search - (serious issue, please help)
Hi,
I have been trying to get FTS to work with dovecot.
When I search from my client (roundcube webmail) I am able to get
results for From, To and Subject fields expect Body on my Apache Solr
engine.
Could this be a schema related problem?
This is output for the Subject:
8025 [main] INFO org.eclipse.jetty.server.AbstractConnector ?
Started SocketConnector at 0.0.0.0:8983
9001
2007 Aug 23
4
FAQ 7.x when 7 does not exist. Useability question
The FAQ Section 7 is a very useful place for new users
to find out any number of R idiosycracies. However
there is no numbering on the FAQ Table of Content or
on the Sections Tables of Contents.
An R-help list reply of "Read FAQ 7.10" in response to
a question about converting a factor to numeric is a
bit cryptic. The only time 7.10 appears is after the
searcher has found the entry.