search for: indexsearch

Displaying 20 results from an estimated 26 matches for "indexsearch".

Did you mean: index&search
2005 Nov 17
6
lock problems from concurrent processes.
Hi! First, thanks a LOT for ferret. The API and documentation is great. I''m trying to integrate ferret into a RoR app (DamageControl) and have run into a problem with locks. DamageControl consists of two processes that start up and run in parallel. The first one is the webapp (which is just a plain RoR app). The second is a daemon process that runs in the background. The daemon process
2007 Feb 16
1
Bug in IndexSearcher with limit => all and any offset
Here''s the deal: static TopDocs *isea_search_w(Searcher *self, Weight *weight, int first_doc, // OFFSET int num_docs, // LIMIT Filter *filter, Sort *sort, filter_ft filter_func,
2006 Jan 02
11
aligning Ferret''s IndexSearcher.search API with Lucene''s
...et classes/methods. Here are the relevant method signatures: Ferret''s search methods: in Ferret::Index::Index: search(query, options = {}) -> returns a TopDocs search_each(query, options = {}) {|doc, score| ...} -> yields to context w/ doc and score for each hit in Ferret::Search::IndexSearcher: search(query, options = {}) -> returns a TopDocs search_each(query, filter = nil) {|doc, score| ...} -> yields to context w/ doc and score for each hit Lucene''s search methods: in the interface Searchable: public void search(Query query, Filter filter, HitCollector results) pub...
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[0x...
2006 Aug 21
6
multiple-index searching with merged results
Hey.. i am just browsing through the lucene features and i''m wondering if this feature is available in ferret as well .. # multiple-index searching with merged results this would be nice, as i''m thinking about several indexes, as i am using a lot of wildcard queries for livesearches like google suggest. i think the performance would increase, if i split my rather big index in
2006 May 05
1
Is there any working way to search multiple indexes?
I''m running from the trunk, and hitting road blocks no matter which way I attempt to search across multiple indexes. I tried a MultiSearcher, but I can''t pass a string for the search query ms.search "iraq" TypeError: wrong argument type String (expected Data) So I tried creating a QueryParser to pass, but I can''t get the fields from the reader
2006 Jan 22
3
Balancing relevancy and recentness
I was wondering if there was a good way to either balance the relevancy score with recentness of matching documents- or include the recentness in the score somehow? Thanks, Ben -- Posted via http://www.ruby-forum.com/.
2007 May 02
1
MultiSearcher Results Question
...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 = Ferret::Search::MatchAllQuery.new searcher.search_each(query) do |doc_id,score| puts reader[doc_id][:text] # Anyway to find what index this doc is stored in? end -- Posted via http://www.ruby-forum.com/.
2006 Nov 02
3
Safe to read index while it is being written to?
Is it safe to open the index to do searches on while another process is writing to the index? -- Posted via http://www.ruby-forum.com/.
2006 Jan 10
1
search_each returns partial results?
Hi, I''m having some trouble with ferret search_each. I''m posting rails'' script/console output, so I guess you can decrypt it: >> res = [] => [] >> index.search_each(''name: a*'') do |doc, score| ?> res << doc >> end => 50 >> res.size => 10 >> I''m guessing the ''=>50''
2006 Jan 14
1
Adjusting scores
One other mod to Ferret I''ve found useful is to add the following line at the top of the each_hit() block in Search::IndexSearcher.search: score = yield( doc, score ) if block_given? This allows a block attached to a search call to adjust document scores before documents are sorted, based on some (possibly dynamic) numerical factors associated with the document, e.g. the number and importance of incoming links to the...
2006 Mar 14
6
cFerret nearing completion
Hey folks, Some good news. I''ve finished cFerret and it''s ruby bindings to the point where I can run all of the unit tests. I still have to work out how I''m going to package and release it but it shouldn''t be long now. If you can''t wait you might like to try it from the subversion repository. It''ll probably only work on linux at the moment and
2007 Jan 05
3
Confused about Search Results
...ene I search for ''influenza'' and get the following result plus a listing of all the filenames: Found 210 document(s) that matched query ''influenza Here is the Lucene code specific to searching: Directory fsDir = FSDirectory.getDirectory(indexDir, false); IndexSearcher is = new IndexSearcher(fsDir); QueryParser qp = new QueryParser("contents", new StandardAnalyzer()); Query query = qp.parse(q); Hits hits = is.search(query); For my second program, I use Ferret to search an index of the same files, which was made using Ferret. I get th...
2007 Jan 02
4
Inconsistant Search Results
Hi, I have this maddening strange bug using acts_as_ferret. If I search for a given phrase (let''s say "xyz") I get one set of results (lets call them set A). I search for xyz again and I get set A again. I search for xyz a third time and I get a different set (set B). I can keep executing the search query and my result sets continue to cycle a-a-b-a-a-b-a-a-b. It''s
2005 Dec 02
43
ANN: acts_as_ferret
...erret INDEX_DIR = "#{RAILS_ROOT}/db/index.db" def self.reloadable?; false end # Finds instances by file contents. def find_by_contents(query, options = {}) index_searcher ||= Search::IndexSearcher.new(INDEX_DIR) query_parser ||= QueryParser.new(index_searcher.reader.get_field_names.to_a) query = query_parser.parse(query) result = [] index_searcher.search_each(query) do |doc, score|...
2005 Dec 02
43
ANN: acts_as_ferret
...erret INDEX_DIR = "#{RAILS_ROOT}/db/index.db" def self.reloadable?; false end # Finds instances by file contents. def find_by_contents(query, options = {}) index_searcher ||= Search::IndexSearcher.new(INDEX_DIR) query_parser ||= QueryParser.new(index_searcher.reader.get_field_names.to_a) query = query_parser.parse(query) result = [] index_searcher.search_each(query) do |doc, score|...
2006 Aug 04
5
A couple of ferret 0.9.4 exceptions
Hi Dave, I am using ferret at my site http://gifthat.com and I just had a few exceptions pop up. I don''t have a way to reproduce them, but my site just was listed on lifehacker.com and these issues have popped up under multiple concurrent users (only twice though which I think isn''t too bad). I am using two lighttpd instances both with read/write access to the index: 1) Error
2007 Nov 15
8
Ferret/AAF Stability?
Hello. I''m the author of DataMapper (http://datamapper.org), and am trying to choose what Full-Text-Indexing engine/plugin I want to include by default. I was hoping you guys could help. :-) Sphinx comes highly recommended, but without live index updates, it just doesn''t seem practical for most of my work. I''m most experienced with Solr, but the whole HTTP::Request and
2019 Mar 08
0
imap segfault in libc.so with CLucene FTS backend enabled
.../portage/dev-cpp/clucene-2.3.3.4-r6/work/clucene-core-2.3.3.4/src/core/CLucene/search/SearchHeader.cpp:121 query = <optimized out> weight = <optimized out> sum = <optimized out> norm = <optimized out> #16 0x000063e7edaf0cd7 in lucene::search::IndexSearcher::_search(lucene::search::Query*, lucene::search::Filter*, int) () at /var/tmp/portage/dev-cpp/clucene-2.3.3.4-r6/work/clucene-core-2.3.3.4/src/core/CLucene/search/IndexSearcher.cpp:222 weight = <optimized out> scorer = <optimized out> bits = <optimized...
2007 Feb 16
1
Highlight raises Segmentation Fault Error in Ferret 0.10.9 i
Hi Everyone, I am currently in process of upgrading Ferret 0..9.1 to Ferret 0.10.9 with Ruby 1.8.4 in windows platform. I am trying to use search highlight feature on index_searcher subject = index_searcher.highlight("subject:(blah blah)", 0, :field => :content, :pre_tag = "<span