Displaying 20 results from an estimated 2000 matches similar to: "Search docs with terms that match a pattern"
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
2007 Dec 31
2
"and" without boolean operators
Salve,
Thank you very much for your kind answer. Spelling correction works very
well now. I have just one more question.
I am using Xapian::QueryParser() to create the Query. The flags are:
FLAG_PHRASE | FLAG_LOVEHATE | FLAG_WILDCARD
If I search, lets say for "king queen" (without quotes), I get all documents
with either "king" or "queen". Is there a chance to
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
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
2020 Nov 16
4
set_max_expansion in perl-bindings?
Hi,
I've just noticed that set_max_wildcard_expansion() has been removed in
favour of set_max_expansion() in Xapian.
Has the new method been added to the Perl-bindings?
We have some old Perl code that uses set_max_wildcard_expansion(), and I
have a test of too large expansion that now returns "something terrible
happened" instead of"Exception: Wildcard ... expands too much
2017 Mar 31
3
xapian bug tracker registration email is not working
I tried to register yesterday, twice with 2 email addresses. The website
said it sent me mail, I never got a mail. Someone else, please confirm
this is broken.
A bug I'd like to file is that I'd like an option to search
*word. Currently you can only search word*. The example where I would
find this useful is searching for urls and email addresses. For example,
I want to find emals from
2017 Mar 31
3
xapian bug tracker registration email is not working
I tried to register yesterday, twice with 2 email addresses. The website
said it sent me mail, I never got a mail. Someone else, please confirm
this is broken.
A bug I'd like to file is that I'd like an option to search
*word. Currently you can only search word*. The example where I would
find this useful is searching for urls and email addresses. For example,
I want to find emals from
2008 Oct 28
2
antispam - Unable to determine the destination user
Hello,
I'm trying to install dovecot antispam plugin and I've some problems
with dspam user.
When I move a mail out of 'SPAM' folder I have this error in my
/var/log/messages :
Oct 28 17:01:41 tony2 imap: antispam: /usr/bin/dspam --source=error
--class=innocent --signature=47de4679174462472577556 ...
Oct 28 17:01:41 tony2 dspam[24313]: Unable to determine the
destination
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
2006 Oct 31
3
No search results using Searcher
I just started using Ferret and I successfully indexed some documents. I
can search this index using the following code:
index = Index::Index.new(:path => path)
index.search_each("something") do |doc, score|
print "##{doc} #{index[doc][''url'']} - #{score}"
print "\n"
end
However, when I try to use Search::Searcher and QueryParser
2010 Oct 28
1
hypens in words + NEAR + 3 terms + AND_MAYBE => crash
Probably an uncaught malformed query - the following form of search queries
causes a crash for me (core 1.2.3, Perl API, 64bit Debian Lenny, self-compiled):
x-y NEAR test NEAR test
The first term can be anything with a hyphen in it but word characters at the
beginning and end ("3--3" will do). The other 2 terms can be anything.
"test NEAR x-y NEAR test" will not cause a
2015 Mar 05
3
Dovecot Full Text Search results in SolrException: undefined field text [SERIOUS]
Hello,
My dovecot constantly runs into this error.
I want to fix this one last time, I am tired of troubleshooting so
please someone give me a lasting and proper solution for this error. I
think its a problem with the dovecot-solr module.
Please tell me how do I find the root of this problem with Dovecot.
There is a problem with the body search text field. It always
fails(with no result), other
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",
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 Apr 11
2
setting the default operator on a QueryParser
Hi all,
Thanks to the authors for the amazing work on Ferret! I have a question
about setting up the standard operators on a QueryParser. I would like
my parser to default to AND queries rather than the default OR.
In Java I would simply do:
QueryParser parser = new QueryParser("contents", new
StandardAnalyzer());
parser.setDefaultOperator(QueryParser.Operator.AND);
But I
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
2024 Jan 07
1
Possible bug using FLAG_WORD_BREAKS with fullwidth Unicode codepoints
On Thu, Jan 04, 2024 at 05:50:22PM +0100, Robert Stepanek wrote:
> Since I am undecided yet if and how to fix this in Xapian I haven't
> come up with a pull request. Because trac currently is offline, I
> could not file a bug. I hope it's OK to post my analysis here first,
> I'll be happy to follow up reporting that bug proper later (should we
> conclude that it actually
2006 May 05
1
Is there any working way to search multiple indexes?
I''m running from the trunk, and hitting road blocks no matter which way I
attempt
to search across multiple indexes.
I tried a MultiSearcher, but I can''t pass a string for the search query
ms.search "iraq"
TypeError: wrong argument type String (expected Data)
So I tried creating a QueryParser to pass, but I can''t get the fields from
the reader
2006 Oct 30
1
QueryParser and prefixes
Hi all,
My app uses prefixes for user-defined labels and directory names.
Since these are
case-sensitive, I chose XLABEL and XDIR respectively. Labels and directories
may start with an upper-case, so a ":" is always inserted between the
prefix and the
term itself. These prefixes are mapped with add_boolean_prefix to
"dir" and "label".
Let's imagine I index a