Displaying 20 results from an estimated 1000 matches similar to: "Highlight raises Segmentation Fault Error in Ferret 0.10.9 in Windows"
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
2007 Sep 05
1
AAF and DRb with highlighting
How would I change this method in order to get highlighting working with
DRb? I''ve given up on searching on Google, I''m getting no results that
are actually helpful.
def self.find_storage_by_contents(query, options = {})
# Get the index that acts_as_ferret created for us
index = self.aaf_index.ferret_index
results = []
default_options = {:limit => 10,
2007 Jun 19
3
another issue with highlighting
Hi,
I''m encountering another highlighting issue.
(about the first one "range search and highlighting", i received no
response. I don''t even know if somebody tried to reproduce and/or if
it''s normal behavior)
about the new issue, an example will be easier for you to reproduce:
I''m filling an index with random data, i try to match for "*1*"
2007 Jun 28
1
DRb server crashing
I''m having a problem where the DRb server seems to be disappearing
(crashing?) and I don''t know how to track down the cause or work around
the problem.
Unfortunately I haven''t found a way to reproduce the problem, but it
seems to happen fairly often (maybe once a day). Other then that ferret
seems to be working well.
I can''t seem to find any trace of the
2007 Aug 08
0
Escaping special characters before highlighting
Hi all.
I need to perform some operation on the results of a ferret search
before it gets highlighted. Is there a way to do this?
This is my code which calls the highlighting inside a Rails View:
<%= result.ferret_highlight(@query, :field => :ferret_text, :pre_tag =>
''<span class="keyword">'', :post_tag => ''</span>'') %>
--
2007 Jun 17
1
highlighting and range queries
Hi there,
Is highlighting for range queries supposed to work ?
It doesn''t work here.
here is an non-working example: (highlighting works when q="test:2007*")
require ''ferret''
include Ferret
index = Index::Index.new()
#index.field_infos.add_field(:test, :store => :yes, :index => :untokenized)
i=1
for a in [ "20070505", "20071230",
2007 Jun 07
3
:store => :yes doesn''t work in some cases
I''m not really sure if this is a bug, but it makes my search results
look a bit strange. I have an acts_as_ferret declaration that looks
like:
acts_as_ferret :store_class_name => true, :remote => true, :fields =>
{
:ferret_name => { :store => :yes, :boost => 2 },
:ferret_content => { :store => :yes } }
I store both fields so that I
2007 Feb 06
2
Which method to use to get content from index with a_a_f?
Hi everybody,
After staring at the a_a_f API for quite sometime now, I decided it''s
time to ask...
Which method should I use to get content from the index without using
highlight? Consider the following controller action:
def preview
if params[:search].blank? # normal case
@text = @myfile. # which method do I use here to get the :text from
the index???
else # if we come from
2006 Dec 01
1
Effective search when knowing ID
Hi list,
I''m new to ferret and I wonder what is the best way to search if I
know one fields id and want to search on its content.
I have experimented with FilteredQuery but I don''t know if this is
the best way.
Eg.
index = Index::Index.new(:path => ''/tmp/all'')
@dbh = Database.instance.connect
result = @dbh.exec("SELECT pk_fulltext_id, fulltext_text
2007 Mar 30
1
xten web phone
hi
xten.de produced an activex for web phone.
but I can not find any link for download.
can u help me ?
best
Mani
____________________________________________________________________________________
Now that's room service! Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097
2007 Apr 10
1
XO Flex T-1 & Asterisk
I have an XO t-1 line which includes VOIP on 5 lines. When a call
comes in, it drops the bandwidth on the t1 and when the call is over
bandwidth is restored. The provided a channel bank which does this.
My question is, if I use asterisk, then am I losing double bandwidth
for each call? For example the only way I guess I can connect to the
lines is from the 66block they provided which
2007 Apr 03
1
ipv6 patch
Is it exists?
Regards,
Hong
____________________________________________________________________________________
Now that's room service! Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097
2007 Apr 11
1
wideband codec support
Hi,
Does Asterisk support wideband VoIP? Is there support
for Speex 16 KHz?
Thanks,
Madhuri
____________________________________________________________________________________
Now that's room service! Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097
2007 Apr 12
2
DTMF problem with inbound calls on Toll-Free number
Hi all,
I have asterisk 1.2.13 and problem is about DTMF.When i have incoming call on Toll-Free number asterisk accept DTMF digits but dial only first in context.
Per instance:
When i press 1 it is OK,but when i try to dial extension 700 asterisk dial only first digit(1) and i receive from asterisk "invalid extension 7 in context..".Extensions 700 exists.It seems asterisk dial only
2005 Dec 14
2
undefined method `add'' for Ferret::Search::BooleanQuery
Up to now in my ferret development I have been using simple
single-word strings as my search queries. I just now am trying to
increase the complexity of my queries. When I was passing a single
word with no spaces in my index searches, like so:
count = index.search_each(''testing'') do |d, s|
...
end
everything worked fine. But now when I do something like this:
count =
2007 Feb 27
3
Problem enforcing permissions on remote file copy
Hello,
I have been attempting to do the following:
file { "/home/test/test.txt": owner => test, group => test, checksum => md5, source => "puppet://puppet/files/test.txt" }
At first, this appeared to work, but now I realize that when the file is copied from the server, the permissions are not applied until the next puppet run.
Does puppet not apply the
2007 Feb 22
4
Assistance Requested
Hello,
I am currently experiencing a bit of a quandry with how to specify default configuration applications to generic nodes.
Here is an example setup:
Classes:
Class A
Class B inherits Class A
Class C inherits Class B
Problem:
I have unique hosts (nodes) X and Y and a bunch of other standard hosts. I would like X and Y to be able to override attributes in Class C (thus inherit class C) but
2006 Mar 29
1
Problems with Ferret 0.9.0
Hi,
I upgraded from 0.3.2 to 0.9.0, and now my old search code doesn''t work
anymore. I get a lot of ArgumentErrors, for example:
"query.add_clause(Search::BooleanClause.new(query_parser.parse(term),
Search::BooleanClause::Occur::MUST))"
raises:
ArgumentError (wrong number of arguments (2 for 0))
"index_searcher.search_each(query)"
raises:
ArgumentError
2007 Jan 25
0
multibyte character corrupt in highlight method
When I apply highlight() method to the search result,
multibyte characters are corrupted.
The post_tag is located in the middle of last character,
so the last character corrupts.
Here is my code.
query = "SOME_MULTIBYTE_CHARS"
searcher.search_each(query) do |doc_id, score|
puts searcher.highlight(query, doc_id, :field => :content)
end
And this is the result.
... bla, bla, bla,
2007 Mar 29
1
pxelinux.0...error: not a valid image; unable to load file
I am trying to update a computer from Fedora Core 4 to
Fedora Core 6. My plan is to do this using PXE and a
kickstart file. I am implementing the use of an FTP
and DHCP server. The computers I am updating are
diskless workstations, meaning they have no hard
drives and they boot off of the network. I have
configured my dhcp.conf file, my ks.cfg (kickstart
file), my tftp server and so on, but