Displaying 11 results from an estimated 11 matches for "document_id".
2006 Dec 02
1
document_id globally incrementing
Hi All
I have made my xapian indexer automatically create new indexes once it
reaches X documents in each, and for each document that I add to each
sub-index, I record its document_id and its index_id (relating to what
index the document ended up in).
writabledatabase_add_document() returns document_id:s beginning from 0
for each new index when you add new documents, like you would expect.
So far all good.
Here is the problem: when I search through the indexes together (usin...
2006 Mar 29
1
Using boolean terms in PHP bindings
OK, I'm indexing my data with the scriptindex. I want to be able to
restrict the search by the category field. Do I need to do anything to
the data itself? Like, literally prefix it with the characters "XC"?
Below is my indexor for scriptindex and the my php code...
document_id : field=ref unique=Q boolean=Q
search_id : field=document_id index=S
document_title : field=title weight=3 unhtml index
landing_page : field=landing_page
document_text : field=document_text unhtml index
abstract: field=abstract
category: field=category boolean=XC
- - - - - -
php
- - - - - -
/...
2006 May 15
1
adaptive query scoring
...returned by a query should get more weight because they are getting
clicked more often) in xapian? Is this what the rset class should be
used for?
I could write a php app to do adaptive results scoring for separate
words (just recording the clicks and then have a cron:ned script add
weight to the document_id:s for the recorded words), but I don't see a
clear way to do this for phrase searches (as in document_id x should get
more weight if the search is for (and only for) 'xbox console', not
'xbox' or 'xbox games' or whatnot.
Thanks
Alec
2006 Dec 01
1
writabledatabase_delete_document()
Hi guys
I have implemented xapian on a website, and it currently has about 2M
items in its index.
Its all been working quite nicely so far, until I tried removing some
old items from the index (removing items when the index was smaller was
no problems at all).
When I try to remove them now (using writabledatabase_delete_document()
via php), it halfway freezes up the machine, and the apache
2006 Aug 02
2
Ajax_Scaffold display from link table
...ntroller.rb
@paginator, @documents = paginate(:documents, :order => @sort_by,
:include => :category, :per_page => default_per_page)
I keep getting the following error:
ActiveRecord::StatementInvalid in DocumentsController#component
Mysql::Error: #42S22Unknown column ''categories.document_id'' in ''on
clause'': SELECT COUNT(DISTINCT documents.id) FROM documents LEFT OUTER
JOIN categories ON categories.document_id = documents.id
Can anyone help me and point out where i am going wrong?
--
Posted via http://www.ruby-forum.com/.
2007 Sep 13
5
refreshing indexes?
...ument.find(:all, :conditions => [''group_id in (?)'', session[:group_ids]) ?
Question 2:
These documents are dynamic, so they are deleted, updated, edited etc.
How do I handle indexing in these circumstances? Delete all and
recreate -or- is there a way to just delete an index by document_id
and recreate it just for that document.
I am going to try this in the app but before I took the plunge I
thought I''d ask first.
-tia,
bakki
PS: the app will be used by separate client companies, so on one
server we will host the app in multiple virtual hosts(separate rails
app instance...
2009 May 07
1
increasing memory for R bg job
Hi,
Is the following command used to increase the memory or any other command when a background R job is run?
R --min-vsize=vl --max-vsize=vu --min-nsize=nl --max-nsize=nu --max-ppsize=N
source:
http://stat.ethz.ch/R-manual/R-patched/library/base/html/Memory.html
Thx
Carol
[[alternative HTML version deleted]]
2008 Oct 20
1
Design decision: Dynamically adding data question.
I need to give users the ability to optionally add metadata to
documents. Another way to state this is the fact that users need to add
at least 5 categories to a document.
Basically what I want to do is dynamically add metadata (or categories)
to a document on an ad hoc basis. Here are the options that I have
thought of:
**Option 1:**
Should I do this by dynamically creating new table columns in
2010 Jan 16
3
Formtastic and Access to Variables of Nested Model
...s (and, by extension, an Option belongs to a
Document).
Each document may have a different number of options, hence why I made
it a separate model.
Each document has the following fields: "name" and "content".
Each option has the following fields (aside from the obvious
"document_id"): "name", "hint", and "value".
I would like to create a form for a document, with nested fields for
that document''s options. The tricky part is that I would like to use
the fields listed above in my builder, for instance for the hint or
label.
I'...
2006 Jul 10
11
Category Number Results returned
I am looking to have a number of categories populated from my results of
a search. For example, searching on "sport" would display all results
for sport. I want to also have a number of categories to refine the
documents down. So by clicking on the "Fishing" category or the
"Shooting" category, I would only see the results on sport around that
category.
Now for
2008 Jan 25
2
Help Me to Adjust the R Code
Hi,
The following code, from Angelo Canty article on line "Resampling Methods in R: the boot Package, 2002", works fine for Angelo Canty using R 2.6.0 on Windows XP.
It also works for me using R 1.2.1 and S-PLUS 2000 on Windows XP after installing the S-PLUS bootstrap library, with slight differences in my outputs.
> library(boot)
> library(survival)
>