Displaying 20 results from an estimated 500 matches similar to: "Bug and patch for +terms with wildcards"
2008 Sep 16
0
[PATCH] Add set_max_wildcard_expansion method to the queryparser.
---
search-xapian/XS/QueryParser.xs | 6 ++++++
search-xapian/Xapian/QueryParser.pm | 7 +++++++
xapian-core/include/xapian/queryparser.h | 3 +++
xapian-core/queryparser/queryparser.cc | 6 ++++++
xapian-core/queryparser/queryparser.lemony | 9 +++++++++
xapian-core/queryparser/queryparser_internal.h | 4 +++-
6 files changed, 34
2013 Sep 22
2
How to filter search result with query with has white space.
Hello,
include <iostream>#include <string>#include <xapian.h>struct document{
std::string title;
std::string content;
std::string url;};
void indexData(document d) {
try {
Xapian::WritableDatabase db("/Users/ramesh/Desktop/xapian",
Xapian::DB_CREATE_OR_OPEN);
Xapian::TermGenerator indexer;
Xapian::Stem
2013 Sep 22
2
How to filter search result with query with has white space.
Hello,
include <iostream>#include <string>#include <xapian.h>struct document{
std::string title;
std::string content;
std::string url;};
void indexData(document d) {
try {
Xapian::WritableDatabase db("/Users/ramesh/Desktop/xapian",
Xapian::DB_CREATE_OR_OPEN);
Xapian::TermGenerator indexer;
Xapian::Stem
2010 Nov 02
1
How to make QueryParser select entire word like "H.O.T"
Hi,
I'm using xapian to build my search engine, but met with a problem.
The code snippet is like:
----------------------Code begin-------------------------------------------------------------
Xapian::QueryParser qp;
qp.add_prefix("Singer", "S");
Xapian::Query query = qp.parse_query("Singer:s.h.e",
2018 Nov 30
1
Xapian Benchmark results
Hi,
I am currently trying to benchmark a multithreaded xapian implementation on
a chameleon baremetal instance written in C++. My workload is a 3 Gig
wikipedia xml dump consisting of ~286 file of different sizes. My results
are showing me that indexing on xapian is an order of magnitude faster than
my lucene and lucene plusplus implementations. This is a result that I did
not expect. Just want to
2005 Jun 09
1
Query parser and stemming of norwegian letters
Hello, can I get an explanation of the following.
Running the following code:
....
pqp=new QueryParser();
Stem stem("norwegian");
cout << "DEBUG " << stem.stem_word(_sXapian)<< endl;
pqp->set_stemmer(stem);
pqp->set_database(*_pdatabase);
pqp->set_default_op(Query::OP_AND);
//Set the
2011 Jun 16
1
OP_ELITE_SET and max number of terms
Hi,
When we use OP_ELITE_SET we can specify the number of terms we want to
use. In http://trac.xapian.org/wiki/FAQ/EliteSet there is this text:
"The number of terms which OP_ELITE_SET will use defaults to 10 (or
ceil(sqrt(number_of_subqueries)) if there are more than 100
subqueries), but may be set by specifying a parameter to the query
constructor"
is it possible to use only the
2015 Jul 26
1
Get term from document by position
mple (see attachment).
>
> Attachments get stripped out by the mailing list, so I?ve made a private gist of the two files here: <https://gist.github.com/jaylett/ce8455b37e2b84422346>.
>
> Actually, when I run it I get 0 matches, which would explain why you?re just getting the start of the document. However if I adjust things (match the stemming strategy for TermGenerator to
2006 Nov 30
1
PHP / XapianQueryParser
Hi everyone,
I tried sending a message as a reply a while back on my previous topic, but it didn't go through. (Tried Gmane), not even when I 'authorized' the reply. So I'll just paste it here for reference, below this message. It might help some people. But now I have one other small problem, and I'm not sure if it is actually my mistake (although I'm pretty sure it is
2010 Jan 19
1
QueryParser: aliases and OP_AND
Hello,
I'm wondering about how the QueryParser parses a query containing an "alias" when the default operator is OP_AND
(by "alias", I mean a search field mapped to multiple term prefixes).
With the following php code :
<?php
$parser=new XapianQueryParser();
$parser->set_default_op(XapianQuery::OP_AND);
$parser->add_prefix('alias', 'AUT1:');
2009 Aug 17
1
Xapian DatabaseError
Hi, I've a problem to integrate xapian in my web application. I've developed the code for index e for search the documents published through my application.
The app is developed in PHP. I've created a file that contain some function for search (called simpleSearch and advSearch).
The problem is that if i run the code through the IDE (Zend for Eclipse) as PHP script it work correctly,
2009 Mar 02
0
Xapian, PHP bindings and
Hello,
With PHP, I try to get spelling corrections but after 2 days of trying I can
make it work !!!
Here is my < simple > code :
<?php
require_once( '../global.info.php' );
require_once( 'xapian.class.php' );
require_once( 'xapianencode.func.php' );
// Open the database for searching.
try {
$database = new XapianDatabase(
2013 Sep 02
2
having trouble with prefixes
I've got a small test database setup with one record.
$ delve -r 1 -V /tmp/1/
Values for record #1: 0:DD4F2162FFFF0E43741A4A1C2B8EC0E7 1:./Text_page_scan_2.jpg 2:jpg 3:.jpg
Term List for record #1: E:.jpg P:./Text_page_scan_2.jpg Q:DD4F2162FFFF0E43741A4A1C2B8EC0E7 T:jpg
The terms were added with lines like this:
doc.add_term(string("P:") + path);
Problem is, I can't seem to
2011 Jul 27
3
Searching using prefixes
Hi guys
I'm trying to figure out how I can use probabilistic searching on a
given field within a document; I've written to the list about this
before, but haven't quite figured out what's required and, following a
little research, I think I understand what I need to do but I'd like a
clarification on this.
o We have a database of a number of documents, with fields: title,
2012 Jan 05
1
Enhance synonyms feature of the query parser (patch included)
Very few people seem to be using synonym in Xapian, I recently found some problems in the use of synonyms.
Normally, I think we should not contain any prefix info in synonym table except that 'Z'.
For example, I have the following synonyms and prefix info:
db.add_synonym("search", "find");
db.add_synonym("Zsearch", "Zfind");
2006 May 17
1
Need a little help with the pure Ruby win32-eventlog
Hi all,
I''m working on the EventLog#read method for the pure Ruby version of
win32-eventlog, but I''m stuck on the get_description private method.
Here are the problems:
* I don''t think I''m advancing the EVENTLOGRECORD properly between
iterations. Take a look at the end of the "while dwread > 0" loop. I
get some records, but not all of them.
2012 Jan 04
2
[issue] The difference between QueryParser::FLAG_AUTO_SYNONYMS and QueryParser::FLAG_AUTO_MULTIWORD_SYNONYMS
I don't know whether this is a BUG or for special purpose...
According to the definition of "xapian/queryparser.h", FLAG_AUTO_MULTIWORD_SYNONYMS contains bit of
FLAG_AUTO_SYNONYMS .
Therefore, long as I set the parse flag with FLAG_AUTO_SYNONYMS, the query parser will automatically activate
the function of FLAG_AUTO_MULTIWORD_SYNONYMS. See the below source code part from
2007 Nov 08
1
QueryParser : some remarks
Hi to all,
First, I would like to say a big thank you for the work which was done
on my 'wish bug' to allow mapping one field to multiple prefixes
(http://www.xapian.org/cgi-bin/bugzilla/show_bug.cgi?id=93).
That's great!
I have upgraded to 1.0.4 and I am revisiting my code, replacing the php
query parser I wrote with Xapian's one.
Everything works well, but I have some
2011 May 15
0
Fwd: FLAG_PARTIAL and subset words
Please keep replies on-list so everyone can help and benefit.
Begin forwarded message:
> From: Greg <freediving at gmail.com>
>
>>> We're using it this way:
>>> xq = qp.ParseQuery(query, (uint)Xapian.QueryParser.feature_flag.FLAG_PARTIAL);
>>> The op is AND and the get_description is fairly long (I removed some
>>> of it since there is a limit
2011 Sep 30
1
Slow phrase performance
I've been getting excellent performance out of xapian but when
searches on phrases of common terms such as [ "north america" ] or [
"art history" ] get run it will take a very long time to come up with
results.
Examples:
------------------------------
[ south africa ] -- 10379 results found in ~.2 sec
[ white house ] -- 17988 results found in <1 sec
Quoting either of