Displaying 20 results from an estimated 500 matches similar to: "bitmask(bitwise operation) support in Ferret"
2007 Apr 16
5
AAF: merge search results
Hi,
I have a user model that has a couple of other models(like street
address, tasks).
suppose
User has a name field
Address has a state field.
so I want to provide a detailed search form each field in the user and
its related
models can be specified.
Suppose I have a user that has a name "california", and that user has a
address with the state field being "california" as
2007 May 03
1
Numeric Range or comparision doesn''t work
Hi,
it looks like Ferret still compares numeric fields by lexical ordering,
not numerical ordering. I am using Ferret 0.11.4(I tried in both linux
and windows, the results are the same).
index = Ferret::Index::Index.new()
docs = [
{:num => 1, :data => "yes"},
{:num => 1, :data => "no"},
{:num => 10, :data => "yes"},
{:num => 10, :data
2007 May 29
1
is "IN" a special word?
Hi, I am trying to do a search for a field that contains the word "in"
or "IN", but ferret doesn''t return me any result.
class User < ActiveRecord::Base
acts_as_ferret :fields => {
:user => {:store => :no },
:len => {:store => :yes}
}
end
ruby script/console
>> User.find_by_contents(''Cal'')
=>
2007 Apr 30
1
Can''t search fields with space
Hi,
I have a user model that has a city field which is searchable using
acts_as_ferret.
But I can''t get it to return any result whether I use
:city => {:store => :no, :index => :untokenized},
or
:city => {:store => :no} in my User model''s acts_as_ferret option
>>> User.find_by_contents("city:(cal poly)")
=>
2009 May 11
1
using virt-install program
Hello,
I have successfully used the following command line, but I would like
to have some modifications. I would like the virtual disks to show up
as disk paritions, rather than entire disks. 1) is there a way to do
this via the command line, and 2) are there any real performance
differences?
virt-install -n daffy -r256 -f /dev/VolGroup01/root_daff -f /dev/
VolGroup01/swap_daff -f
2007 May 08
0
case sensitivity for untokenized fields
Hi, I have a address model.
I make the city and the state field untokenized. It looks like Ferret
doesn''t perform downcasing for these fields in the index.
so the search can''t be done case-insensitively.
how do I solve this problem?
Downcase the indexed terms as well as the search value?
Is there a simpler solution?
Thanks.
Yaxm
--
Posted via http://www.ruby-forum.com/.
2007 Apr 22
0
rename error using rebuild_index in console after searching
Hi,
I use ruby console to experiment acts_as_ferret, but I ran into file
rename error when I try to rebuild index after doing a search.
is this normal? I am using Ferret 0.10.9 in windows XP.
Loading development environment.
>> Address.rebuild_index
=> {}
>> Address.find_by_contents(''US'')
=> #<ActsAsFerret::SearchResults:0x4f2ffcc @total_hits=2,
2007 Jul 23
0
any restful client other than active_resource?
Hi,
I am trying to consume a restful resource.
I tried active_resource with rails 1.2.3, but it doesn''t work.
so I assume that it only works with Edge Rails.
Is there any other ruby-based restful client available?
Thanks.
Yaxm.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
2006 Oct 02
4
Another web app using Ferret
I am apart of a team that runs a student site called Studicious
(http://stu.dicio.us). We have been using Ferret from the beginning, and
recently added acts_as_ferret and sorting to the system.
As you can see if you try the search, sorting is not working as
expected. I am using this code (w/ find_by_content):
:sort => Ferret::Search::SortField.new(:school_sort, :reverse => false)
2006 Feb 28
2
FerretOnRails
I have spent a couple hours researching the FerretOnRails and acts_as_ferret
plugin, and am very pleased with what I see so far.
My question is how to have my application, with multiple models:
Speakers
Talks
News
etc..
With all varying :string and :text column types, to be able to use a single
index by which I can produce a search on.
I will go through each of the models and add a
2007 Jan 15
3
Wrong total_hits when using conditions in find_by_contents
I don''t know if this is a bug, or wanted behavior, but for me it was a
pain in... So here''s the problem + a bugfix.
Lets say you have a model "Article" with the following fields: title,
visible - and these records
[code]title, visible
ferret talk, 1
ruby talk, 0
ruby on rails, 1
lets talk about ruby, 1[/code]
If I let Article act as a ferret, and do:
result =
2006 Sep 12
3
Querying against numeric fields? e.g. price:( >= min_price)
Using acts_as_ferret I''m trying to do a query like:
active:(true) title|body:(#{params[:s]}) product_price:( >=
#{params[:min]})
Where I want to return only the active products that contain the search
term in the title or body and has a minimum price >= params[:min]
I''m finding that even though I''m indexing the product price as an
integer (so no .00 to cause
2006 Aug 02
4
Model still using mysql
When calling a Result.find_by_content on my model, I get the following
error:
Mysql::Error: Table ''db.results'' doesn''t exist: SHOW FIELDS FROM results
Yes, I remembered to put acts_as_ferret. Any ideas?
Trace:
2007 Sep 21
3
multi_score?
Hi!
I''m using acts_as_ferret in my rails project and i need to order the
search results by a combination of the result given by ferret (score)
and a ranking in the database (normalized also). this combination can be
like that:
0.4*ferret_score+0.6*database_score
this database_score is also indexed
any idea?
and someone know how to access the ferret data in the object returned by
2007 Jun 20
1
Count_by_content ??
Is there a count_by_content alternative to the find_by_content action?
This is because I''m wanting to do the following in my pagination method:
def list
# step 1: set the variables you''ll need
page = (params[:page] ||= 1).to_i
items_per_page = 20
offset = (page - 1) * items_per_page
# step 2: instead of performing a find, just get a count
item_count =
2007 Mar 05
1
Using act_as_ferret with find_by_sql
Hello,
I wonder if its possible to combine ferret queries with find_by_sql
queries?
Or should I try to rewrite my query using find and then use
find_by_content when I''m done?
Thanks for a great product!
Regards,
henrik
2007 Jul 05
1
how to search date with ferret and acts_as_ferret?
Hey all,
How can I search date with ferret? Do I need to submit them in a special format?
Right now I have in my Item model:
acts_as_ferret :fields => [:created_on]
with eg created_on = Thu May 11 17:00:00 -0500 2006
now when I do Item.find_by_content("created_on:<#{Time.now}")
I get nil, I''m probably doing something wrong.
Any idea how to fix it?
thanx in advance
2011 Sep 07
0
[PATCH] libxl: vcpu_avail is a bitmask, use it as such
vcpu_avail is a bitmask of available cpus but we are currently using it
as the number of cpus available. This patch fixes it.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
diff -r 6580ff415189 tools/libxl/libxl_dm.c
--- a/tools/libxl/libxl_dm.c Wed Sep 07 13:29:15 2011 +0000
+++ b/tools/libxl/libxl_dm.c Wed Sep 07 15:39:46 2011 +0000
@@ -360,8 +360,13 @@ static char
2003 Apr 14
2
[Bug 76] Bitmask problems in include/netfilter_ipv4/lockhelp.h
https://bugzilla.netfilter.org/cgi-bin/bugzilla/show_bug.cgi?id=76
laforge@netfilter.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From
2009 Jun 09
1
Bitwise AND
Hello,
How can I do bitwise AND operations on a variable? I want to check the bits
set in the HANGUPCAUSE, but can't find a way to do it.
--
Alex Hermann