Displaying 20 results from an estimated 300 matches similar to: "Comparing against values (e.g. date ranges)"
2020 Sep 21
1
help improving relevance of snippets displayed by Omega
Whoops, forgot to say, as Olly said, much of that could probably now be
simplified with Xapian's snippet() function, which I can only assume did
not exist back when all this was written! :)
ATB,
Matthew
On Mon, 21 Sep 2020 at 09:28, Matthew Somerville <matthew at mysociety.org>
wrote:
> Hi,
>
> Ha, I was reading this thread thinking TheyWorkForYou (which I help
> maintain)
2020 Sep 21
0
help improving relevance of snippets displayed by Omega
Hi,
Ha, I was reading this thread thinking TheyWorkForYou (which I help
maintain) does highlight terms wherever they are, and then you mentioned it
:)
The code is open source; it is quite old and probably hair-raising, but as
you say it does basically do what you want.
Our Xapian database stores terms/boolean terms/values for the text, and for
the document itself stores only an identifier.
It
2010 Nov 17
3
stacking consecutive columns
I have a file, each column of which is a separate year, and each row of each column is mean precipitation for that month. Looks like this (except it goes back to 1964).
month X2000 X2001 X2002 X2003 X2004 X2005 X2006 X2007 X2008 X2009
1 1.600 1.010 4.320 2.110 0.925 3.275 3.460 0.675 1.315 2.920
2 2.960 3.905 3.230 2.380 2.720 1.880 2.430 1.380
2008 Jul 08
1
making zoo objects with zoo without format argument?
#this is a subset of a larger data frame and I am okay with subsetting it as
there are redundant time stamps, but I would like to create a zoo object out
of this and I am having a hard #time figuring out how to do this the date
structure is year and then month
x <- structure(list(Yearmonth = structure(c(12L, 24L, 1L, 13L, 14L,
3L, 15L, 4L, 16L, 5L, 17L, 6L, 18L, 7L, 19L, 8L, 20L, 9L, 21L,
2009 Jun 10
1
Very far out and static get_matches_estimated
Hi,
I'm getting quite odd results using get_matches_estimated() that I
haven't seen before; we've just added a bunch of new data to the
database. Xapian 1.0.7, checkatleast is set to 100.
The database will get new stuff added to it automatically around 8.30am
BST, so it's possible this might affect the links I provide, I guess.
But I'll note what is currently happening as
2009 Oct 19
2
how to get rid of 2 for-loops and optimize runtime
Short: get rid of the loops I use and optimize runtime
Dear all,
I want to calculate for each row the amount of the month ago. I use a matrix with 2100 rows and 22 colums (which is still a very small matrix. nrows of other matrixes can easily be more then 100000)
Table before
Year month quarter yearmonth Service ... Amount
2009 9 Q3 092009 A ...
2018 Mar 05
4
raster time series statistics
Hi List,
The following code returns an "Error in as.POSIXlt.character(x, tz, ...) : character string is not in a standard unambiguous format"
require(raster)
require(rts)
require(stringi)
r <- raster(ncol=100, nrow=100)
values(r) <- runif(ncell(r))
list(ID=seq(1:24),month=rep(str_pad(1:12, pad = 0,width = 2 , "left"),2),year=sort(rep(2016:2017,12)))->dt
2020 Sep 20
3
help improving relevance of snippets displayed by Omega
Olly,
Thanks again very much for helping me improve my understanding of Xapian
and Omega. Thanks especially for pointing out that my idea of trying to
generate a snippet from stemmed text lacking capitalization and punctuation
would probably not produce a user-friendly result.
But I'm still doubtful that expanding the sample size could be the right
way to obtain excerpts from the document
2018 Mar 06
0
raster time series statistics
> On Mar 5, 2018, at 3:28 PM, <Alexander.Herr at csiro.au> <Alexander.Herr at csiro.au> wrote:
>
> Hi List,
>
> The following code returns an "Error in as.POSIXlt.character(x, tz, ...) : character string is not in a standard unambiguous format"
I'm unable to produce that error. Which function was being evaluated to produce the error? I don't see
2018 Mar 06
0
raster time series statistics
Hi Herry,
This is probably due to a call to strptime (or similar). No, it
doesn't accept %Y-%m as a valid format. Maybe add a constant day to
all the dates as that will work:
dt<-list(ID=seq(1:24),month=rep(formatC(1:12,flag=0,width=2),2),
year=sort(rep(2016:2017,12)))
timelst<-paste(unlist(dt['year']),unlist(dt['month']),"01",sep="-")
2007 Sep 07
0
Feedback on XML metadata namespace
On 2007-09-07, Richard wrote:
Hi Richard,
Thanks for showing interest.
> I just wanted to write to say thank you for taking the time to work on
> this. It is desperately needed IMO.
I agree. However there has not been any signs of anyone taking interest in
this yet. I cannot dedicate too much time to this. Especially with no
support or backing from anyone.
> I will definitely look
2007 Apr 20
1
ExpandDecider and MatchDecider operator() return type
Currently ExpandDecider::operator() and MatchDecider::operator() return
`int' for no very good reason that I can see. It would be more natural to
return `bool', since these classes are making a "yes/no" decision about
whether to include a term in an ESet or a document in an MSet.
The problem is that this can't be done without breaking existing user
code which defines
2017 May 30
1
how to compress 93gb speech mp3 files to opus files
Hi I am Rupesh from India. I have a huge directory of size 93.5 gb with
8500 mp3 files and 2000 sub directories.
All these mp3s are speeches recorded by someone at 64 kbps. I want to
compress these files recursively to opus using lame or another tool with 16
kbps bit rate and 11050 sample rate.
I have compressed the above huge directory with above options using ffmpeg
and the resulted
2012 Mar 20
2
Writing a MatchDecider and exposing it to PHP
I would like to write a MatchDecider in C++ and expose it to PHP.
I'm able to compile a simple extension and use SWIG to expose a simple
function to PHP, but I can't seem to hit upon the right incantation to
expose my MatchDecider class.
I have a header file declaring my decider, MyDecider.h
#ifndef _INC_MYDECIDER_H
#define?_INC_MYDECIDER_H
#include <xapian/enquire.h>
2018 Mar 06
2
raster time series statistics
Last line in the following (updated) code produces the error
require(raster)
require(rts)
require(stringr)
r <- raster(ncol=100, nrow=100)
values(r) <- runif(ncell(r))
stack(r)->s
r->rs
for(i in 1:23){
rs[]<-r[]*i
addLayer(s,rs)->s
print(nlayers(s))
}
dt<-list(ID=seq(1:24),month=rep(formatC(1:12,flag=0,width=2),2),
year=sort(rep(2016:2017,12)))
2007 Jul 05
1
SIP / STUN / Network - Help!!
Hi Everyone.
I'm in a quandry & don't know which way to go. - Obviously I'm an Asterisk
newbie although I've been watching this list for over 2 years now.
I've got an Asterisk box (actually, it's an AsteriskNOW box) up and running
here at home. - It's on my home LAN - NAT'ed behind my LinkSys router. - On
the same LAN I've got a Cisco 7940, 7960, and
2017 Dec 05
1
How to enhance the query performance for large boolean attribute
Hi all,
I am a new user to Xapian, and now we met such problem. In our case, a document has many attributes which is boolean value, for example( A, B, C ) , and our search query will use certain filter logic ( A == true and B == false ..) to combine with other search logic.
We use MatchDecider to implement the filter logic, and now we met some performance problem, because our self-defined
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 ??
2010 Jun 08
1
PHP MatchDecider in 1.2.0
Good afternoon
I would like to ask if is possible in new version of Xapian some kind of
subclasing MatchDecider in PHP. I am developing application where is
very complex permission management. so it cannot be stored in fultext
database. MatchDeciders are perfect for this purpose. But I dont know if
is possible to use them in PHP even if SWIG now supports directors.
Now Iam using
2017 Dec 15
5
How to get the serialise score returned in Xapian::KeyMaker->operator().
HI, all,
I am a user of Xapian, and now I have a problem in using it.
After using boolean terms to get some candidates of documents (still too much), we want sorted them by self-defined function which is used in Xapian::KeyMaker->operator(). But how can I get the serialise score in Xapian::MSetIterator object.
c++ code likes this:
class SortKeyMaker : public Xapian::KeyMaker {
std::string