Displaying 20 results from an estimated 500 matches similar to: ""and" without boolean operators"
2007 Feb 22
1
Wildcards
Hello,
Thanks Olly , by following to your suggestion I could do the indexing in
the CSV file while the
search results retrieved from the Postgres and it's working fine.
[ I am using the Xapian PHP-binding to index and search.]
How could I enable the WILDCARDS in it ?
I followed with the online manual which says it is disabled by default
there given some method to enable
but I am not
2006 Mar 07
2
FLAG_BOOLEAN_ANY_CASE does not work
I have found that lower cased boolean operators such as "and" or "or"
does not work. Of course I never forget setting FLAG_BOOLEAN_ANY_CASE flag.
QP seems to treat them as terms.
Just look at the following tests regardless of search results!
$ python search.py -v woman AND man
Performing query 'Xapian::Query((woman:(pos=1) AND man:(pos=2)))'
0 results
2011 Mar 23
1
how to change the default operator?
Hi all,
I'm sorry to bother you guys with such a rookie question. I tried to change the default boolean operator by editing the file queryparser.h like this:
void set_default_op(Query::op OP_AND);
However, after rebuilding I tested it with the query "grad school" and it still worked with the OP_OR as default, like this:
Parsed query is: Xapian::Query((Zgrad:(pos=1) OR
2006 May 17
3
QueryParser lowercase / uppercase and stemming
Hello.
There are several problems I couldn't find a solution.
1. QueryParser does not perform stemming
I am working with PHP5 and use the xapian wrapper written by Daniel M?nard
I build a query using parseQuery. Output of the parsed query shows that
terms are not stemmed, although a stemmer is set ( see code snippet)
# create a XapianDatabase object to search in
$db = new
2006 Dec 06
1
Bug and patch for +terms with wildcards
In current Xapian SVN HEAD, there is a bug in the query parser concerned
with the handling of wildcard terms with a "+" prefix. Specifically,
a query such as "+foo* bar" will be parsed by the query parser into
Xapian::Query("bar") if there are no terms in the database which start
"foo". Instead, since the "+" term cannot be matched, I believe
2023 Mar 30
1
Having trouble with php8 bindings
On Thu, 30 Mar 2023 at 04:58, Olly Betts <olly at survex.com> wrote:
>
> Another option is to import the things you want with `use` and then
> you can just use `XapianWritableDatabase` without to prefix it with
> `\`. To do that add this after your `namespace literallyanynamespace;`
> line:
>
> use \XapianWritableDatabase;
Thank you very much.
This then (because
2009 Jan 10
2
QueryParser::parse_query() uses OR by default? How to switch to AND?
I use the QueryParser::parse_query() method but I see it uses "OR" by default between words? Is
there a way to make it use "AND" instead?
I see there are flags I can pass to the parse_query() method but none seems to allow a switch from
OR to AND.
I would like to do that without having to write my own query parser. Everything else is fine with
the QueryParser parsing, for
2023 Mar 30
1
Having trouble with php8 bindings
On Thu, Mar 30, 2023 at 04:42:41AM +0100, John Handelaar wrote:
> It appears that I can't use anything in PHP8.2 if the PHP file from
> which I want to access xapian contains a namespace declaration,
> because the PHP functions themselves cannot be found.
You need to tell PHP to look in the root namespace, e.g.:
$test = new \XapianWritableDatabase('searchdb');
Another
2009 Jul 08
1
php error parse_query
I'm having trouble getting a search via php working, I get the following
error:
*Fatal error*: No matching function for overloaded
'QueryParser_parse_query' in */usr/local/share/php5/xapian.php* on line
*1409
*The error occurs at this code
$query = $qp->parse_query( $query_string ,
XapianQueryParser::FLAG_PHRASE
|
2009 Apr 07
1
Search docs with terms that match a pattern
Hello,
I have once again a small question: Is it possible to search a pattern
like "*foo*" ? I saw that we can use QueryParser::FLAG_WILDCARD but
only with "foo*" patterns. Have you got a trick to do that ?
And an other question with wildcards: i tested FLAG_WILDCARD and the
QueryParser, but i have some problems with special characters (by
example "/"). Is it
2006 Feb 07
1
Omega
Are there any options to forming queries with Omega? For instance can
you specify a proximity search like "file near 5 manager"? If so, where
might I find this documented? I don't see it in the docs directory.
Thanks
Jim.
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",
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:');
2006 Sep 22
1
QueryParser bug?
I cooked up a little script to show what I mean. This doesn''t look right
to me, but maybe I just completely misunderstand QueryParser.
Same output on mswin32, unix, ferret 0.9 and 0.10
Cheers, Sam
require ''rubygems''
require ''ferret''
p Ferret::VERSION # 0.10.6
index = Ferret::Index::Index.new()
index << {:title => "Programming
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
2006 Sep 15
3
Crashes and tests failures again with 0.10.4
In the beginning 0.10.4 looked promising, but now that my index has
grown to > 100 MB I''m getting segfaults on some searches again:
>> Post.find_by_contents(''rubyforum'')
# ok
>> Post.find_by_contents(''ruby-forum'')
/usr/local/lib/ruby/gems/1.8/gems/ferret-0.10.4/lib/ferret/index.rb:351:
[BUG] Segmentation fault
ruby 1.8.4 (2005-12-24)
2006 Aug 15
8
Ferret 0.10 series
Hi David,
>> Otherwise I''m fully committed to getting 0.10 out.
>> When it is out, I''d recommend getting it into your
>> development app as soon as you can.
Any idea of timeframe to a 0.10 alpha release?
Kind Regards
Neville
2006 Jul 25
1
RDig document processing error
Hi all,
Am having problems using RDig:
With this rdig config...
cfg.crawler.start_urls = [''http://www.defensetech.org'']
cfg.crawler.include_hosts = [''www.defensetech.org'']
cfg.index.path = ''/my/path/to/index''
cfg.verbose = true
...I get this output:
$ rdig -c config/rdig_config.rb
/usr/local/lib/site_ruby/1.8/ferret/index/term.rb:45:
2014 Oct 30
2
Does Xapian support retrieval optional?
Hi,
I've been using Xapian for a while. But there is a scene I don't know
whether supported already.
Suppose:
1. Raw query: how to make pizza
2. Parsed query: how AND to AND make AND pizza
3. Documents:
d1: how to make pizza at home
d2: 3 ways to make pizza
d3: make pizza in 4 easy steps
Question:
1. During searching process, how to retrieve d2, d3 (although they don't
2018 Jul 19
1
choosing between probabilistic and boolean prefixes for terms
Hi all,
public-inbox allows searching for git blob names (e.g. "badc0ffee")
in patches. Initially, I chose to use add_prefix for probabilistic
terms, since I assumed it could be a superset of what boolean
searching offered. Unfortunately, it doesn't seem to be the case
because stemming is interfering.
So switching to boolean filtering seems to work; and it is
fine for mechanical