Displaying 20 results from an estimated 6000 matches similar to: "Passing text from an rhtml input to a controller"
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 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
2011 Feb 17
3
Handling InvalidAuthenticityToken from bots
I''m using exception_notifier to get an email when a 500 error occurs
in production. Lately I''m seeing a lot of nonsensical POSTs show up
that cause an InvalidAuthenticityToken error. All the fields contain
random characters. (For instance, "search_title"=>"BHQWTZpjGeb")
Is there a way to detect them and not send the email, while still
sending the email in
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 =
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 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 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 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
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
2010 Sep 28
1
Search::Xapian really slow compared to C++ Xapian
Hi,
I made a few tests with the Perl module of Xapian and the C++ Version. The
database I'm using consits of 50 000 documents
which are mainly full texts of PFD documents. The database has a size of
about 1,5 GB.
The indexer is written in Perl and does the job pretty fast and uses about
100 MB of RAM which is OK.
Now if I'm searching in the index with a pretty complex search query like
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.
2003 Mar 05
2
reserved words documentation
I wanted a data frame component to be named "next", for example:
> m <- data.frame (matrix (0, nrow=2, ncol=2))
> names (m) <- c("prev", "next")
> m
prev next
1 0 0
2 0 0
But "next" being reserved prevents $ indexing without quotes:
> m$next
Error: syntax error
> m$"next"
[1] 0 0
Although they are mostly
2008 Jan 09
5
Parallel indexing doesn''t work?
Hi,
I''m trying to get parallelized ferret indexing working for my AAF
indices, based on the example in the O''Reilly Ferret shortcut.
However, the resulting indices after merging seem to have no actual
documents.
I went and made minimal changes to the example in the Ferret shortcut
pdf, and indeed can''t get that to work either. I''d appreciate any help
2010 May 28
1
libsmbclient licensing
Dear Samba team,
We have developed cross-platform multiprotocol intranet file searcher
and it includes the module (SMB scanner for *nix) which uses
libsmbclient to enumerate all files on smb shares ("uses" means
including headers and linking with library). Other modules also use some
external libraries, but all other libraries have LGPL license.
We prefer to publish our
2004 Aug 01
3
Binaries for Visual Studio.NET?
I apologize for what's surely a common question, but the Xiph
archive-searcher seems broken, and all my other searches have come up
dry. Anyway, my question is:
Are there any Theora binaries available for Visual Studio.NET?
Alternatively, how do I build Theora using Visual Studio.NET? I tried
using "\win32\theora_static.dsp", but VS.NET claimed it was corrupt
and couldn't
2006 Apr 26
6
Immediate help needed
I have posted this previously also but haven''t received any help.
So, if somebody could look into it and guide..
I want to validate the extension of files that I am uploading.
Like I want only the doc/pdf files to be uploaded..
Thanks in advance.
--
Posted via http://www.ruby-forum.com/.