Displaying 20 results from an estimated 1200 matches similar to: "collapsing by a key in a compound database"
2008 Dec 06
1
Obtaining actual match count if using set_collapse_key()
Greets,
Is it possible to obtain the actual match count if you're using
set_collapse_key()? ie, the total count *before* the collapsing
occurs (without using get_mset()).
Alternatively, will MSet::get_matches_estimated() return the true -
pre-collapse - count, or will it also be affected by collapsing?
Thanks
Henry
2006 Feb 08
2
compound conditions in find
can''t seem to find the right syntax for this...
/script/../config/../app/controllers/placements_controller.rb:155:
syntax error
:conditions => [["placements.client_id = ?",
params[:client_id] ] and "placements.discharge_date IS NOT NULL" ],
this part works...
:conditions => ["placements.client_id = ?", params[:client_id] ]
this is what I
2014 Dec 19
2
Replace atoi and atol with strtol strtoul:Need Help
On Thu, Dec 18, 2014 at 11:38:42PM +0000, James Aylett wrote:
> Collapsing is done using a valueno (you can tell because collapse_key
> is of type Xapian::valueno), which is a 32 bit unsigned integer (see
> here:
> https://getting-started-with-xapian.readthedocs.org/en/latest/concepts/indexing/values.html).
> For 32 bit unsigned you need unsigned long.
Xapian::valueno is actually a
2008 Sep 16
1
Some Questions From the beginner of Xapian
Dear, guys:
I am a beginner of Xapian, when reading the documents, I encountered follow questions.
(1) I see the Xapian::Document has a method
void add_value (Xapian::valueno valueno, const std::string &value)
What's the purpose of this method? Document will related to the terms, but what's the purpose of this?
(2) add_posting method will add term to a documents.
void
2005 Dec 29
3
Post problem with select lists
hey,
i have this problem
how come i always get -1 for the select list??
rhtml
First, select a client.
<select id="client_id" name="client[id]" onChange="submit();" >
<%= options_for_select(@client_options, @client_id.to_i) %>
</select><%= @client_id %>
controller
if @request.post?
if @request.xml_http_request? #called by ajax,
2006 Dec 13
1
Re: [Xapian-commits] 7575: trunk/xapian-core/ trunk/xapian-core/include/xapian/
On Wed, Dec 13, 2006 at 06:09:49PM +0000, richard wrote:
> Improve documentation comment for Document::get_value().
Further to this improvement, I wonder if the "must be >= 0" should be
dropped. Xapian::valueno is an unsigned type, so you effectively can't
pass a negative value in (if you do it'll be converted to a large
positive value and would work if used
2007 Oct 25
1
find - group - postgres
I am not sure that this is entirely a rails question as I am trying to
run the command in postgres and I am getting the same error...
controller code...
@client_slot_count = ClientSlotsDaily.find(:all,
:conditions => ["created_at > ? AND created_at < ? AND
facility_id = ? AND client_id IS NOT NULL",
starting_date, ending_date, @facility.id],
2006 Apr 13
1
Adding a title to an AJAX link.
Hello all.
I am trying to add a title to a link_to_remote created AJAX link.
What I want to create is:
<a href="#" title="VALUE-HERE" onclick="new Ajax.Updater(''content'',
''/area/show/28/40'', {asynchronous:true, evalScripts:true}); return
false;">Area Name</a>
However I cannot seem to get it to work, the API says
2014 Dec 18
4
Replace atoi and atol with strtol strtoul:Need Help
Hello,
I came across the file *omega.cc* which is in directory*
xapain-application/omega/*
In this file , atoi is used in *Percentage Relevance cutoff *(293 line no)
as Percentage lies between 0-100 their is no need to modify atoi . But do
we need to check for error's ?
Second Implementation is in *collapsing* (301) in which we collapse set of
document under a key,range of this key has not
2006 Jul 08
4
Hidden fields in forms
Please can someone show me the correct syntax for a hidden field in
forms, this is my code
<%= start_form_tag :action => ''create'' %>
<div class="form1">
<table width="auto" boader="8" cellspacing="5" cellpadding="5">
<% hidden_field ''line_item'', ''client_id'', :value
2012 Jul 15
1
Facebook redirect
Hi everyone
I have this Application witch won''t redirect, I think it''s because there is
another redirect, I mean when i redirect to the FB url
(https://www.facebook.com/dialog/oauth?client_id=439021042804757&redirect_uri=http://localhost:3000/)
I know there is another redirect, but I can''t get rails to follow this
redirect. I had tried to google it, but
I
2006 Feb 10
2
How do I test actionview helpers in the console?
I would like to see the output of actionview helper methods, to be able
to play with it.
When I do the following in the console:
collection_select("job", "client_id" , @clients, "id", "name")
I get:
NoMethodError: undefined method `collection_select'' for
#<Object:0xb7cf1970>
I''d like to get something like:
<select
2007 Dec 22
3
collection_select validation problem
I''m trying to assign a parent foreign key value using
collection_select from my child "new" form. The problem I''m having is
if I do not make a selection, I get the following error instead of the
Rails validates_presence_of error:
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occurred while evaluating
2006 Mar 07
6
how to add onchange javascript event to select field
I would like to add javascript ''onChange'' event handling for a select
field, such as
<%= collection_select("job", "client_id" , @clients, "id", "name") %>
with onChange="xxx"
Anyone know how to make this work?
Thank you,
Scott
--
Posted via http://www.ruby-forum.com/.
2006 Jul 16
4
Calculations across multiple tables
I have a time tracking app where (pseudo-code)
Client has_many Task has_many TimeRecord
TimeRecord
start_at, :datetime
end_at, :datetime
What I''m trying to do (and I have done using find_by_sql in the past) is get
a sum of the timespan given by ended_at - begun_at for each client.
Is it naive to imagine that AR''s calculations will span relations to provide
a grouped
2006 Jul 25
2
weight scheme with document values
Hi guys,
I resently used xapian to sort some documents by distance between 2
points.
I implemented a MatchDecider which work well.
I now tried to implement a Weight scheme to put my document in ascending
order depending on the distance...
My information to calcul distance is in values in the document.
How I can access document values from Weight to be able to add some
sum_extra weight ??
2006 Mar 22
4
Newbie - populating select list from db
Can''t seem to find an example of this anywhere - how do I populate a
select list in a form from a database?
I have a form to create a new task. The task is for a client, so there
should be a select list populated from my clients table. I thought this
would work:
<%= select ''task'', ''client_id'', Client.find_all, "id", "name"
2006 Jan 27
4
find.collect problem.
Hi all.
I am trying to populate a dropdown based on two values.
def self.clientref( reference )
@bugclientrefs = self.find_all(["bug_id = ?", reference]).collect {|b|
[ b.client_id.strip << " - " << b.client_ref.strip ]}
end
This works fine. However this returns the reference to the client. I
want the full name using this function.
class Bugclient <
2011 Jan 02
1
fb-connect -Missing client_id parameter
Hi,
I used facebook connect in my application for login and registration
process using authlogic + authlogic connect gem.
It works good in local machine, but in server it shows the error
message like this.
{
"error": {
"type": "OAuthException",
"message": "Missing client_id parameter."
}
}
Pls provide some solution to fix
2015 Apr 25
4
Error writing CDR
Hi All
I have dozens of these messages on CLI complaining about database connection and error writing CDR to disk.
The curious thing is I can find them all inside the database.
I "selected" them using uniqueid and manually compared each column with the cdr_adaptive_odbc.c error line.
"mysqlcheck -a -e -v DBase" and "mysqlcheck -c -e -v DBase" both returned OK for