search for: op_filter

Displaying 12 results from an estimated 12 matches for "op_filter".

Did you mean: rp_filter
2012 Mar 16
1
MSetIterator::get_percent Shows Increased Values When Using Query::OP_FILTER
I'm seeing some rather odd behavior with respect to the match percent that is returned when performing a simple query. It appears that the addition of a filter to a simple OR query will not affect the weight of the match, but will increase the percent of the resulting match. According to the documentation for MSetIterator::get_percent (
2006 Dec 06
1
Bug and patch for +terms with wildcards
...=========== --- api/omqueryinternal.cc (revision 7553) +++ api/omqueryinternal.cc (working copy) @@ -54,6 +54,7 @@ case Xapian::Query::OP_NEAR: case Xapian::Query::OP_PHRASE: case Xapian::Query::OP_ELITE_SET: + case Xapian::Query::OP_MATCH_NOTHING: return 0; case Xapian::Query::OP_FILTER: case Xapian::Query::OP_AND_MAYBE: @@ -70,6 +71,7 @@ { switch (op) { case Xapian::Query::Internal::OP_LEAF: + case Xapian::Query::OP_MATCH_NOTHING: return 0; case Xapian::Query::OP_FILTER: case Xapian::Query::OP_AND_MAYBE: @@ -166,6 +168,9 @@ case Xapian::Query::OP_...
2007 Oct 01
3
How to beat Google aka Xapian & Natural Language Processing.
...new thing and there has been lot of work done that yield inconsistent results. What I am trying to point out is that we need start to think about using natural language processing when placing infrastructure for Xapian. So far we have the following OP_AND, OP_AND_MAYBE, OP_AND_NOT, OP_ELITE_SET, OP_FILTER, OP_NEAR, OP_OR, OP_PHRASE, OP_VALUE_RANGE, OP_XOR search operators and we could add one more OP_NLP. What we can do now is to implement OP_NLP to tagged nouns, adjectives, adverbs, punctuations, foreign words etc. Calculate relation between them and assign boost value to the most occurred terms...
2006 Apr 06
1
search on subsets
hi all i am building an experimental php search app on top of xapian (using the xapian-bindings). i want to add a feature so that you can search within a search - search on a subset. i haven't yet started working on it, but as far as i can tell, there seems to be no easy way of doing this. can someone point me in the right direction? thanks alec
2010 May 22
1
How to search documents with certain values
Hi all, I am creating Xapian documents and adding a unix timestamp to each document as a value using the doc.add_value method. When I search my Xapian database, I want the option to only search documents with a timestamp within the last year. Is there a way to search across documents with a value greater than a specified value string? Or is there a better way of doing something like this? Any
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
2024 Apr 26
2
queries for a set of values
...#39;ll build a tree, but still get optimised the same way - it's just a bit less efficient because it needs to allocate for each node in the tree). One difference is that filter here will match everything if there are no filter terms, so you can just always apply it: query = Xapian::Query(OP_FILTER, query, filter); The notmuch way will match nothing for that case so you need to conditionalise applying the filter (assuming you still want to match something when there are no filter terms). > With a set of integers I have (after sortable_serialise), would the > best way be to OP_OR a bun...
2016 May 16
2
Weighting recent results
I was thinking about this some more: Is there a reason I can't just weight by some function of recency at indexing time? $weight = get_weight_based_on_recency(...); $tg->index_text($txt,$weight); If I wanted to allow the user the option of searching either in recency-weighted mode or not, I could index each document into 2 different databases, one with and one without. This avoids
2024 Apr 26
1
queries for a set of values
I probably should've used boolean terms in addition to numeric values when indexing, but currently I have a set of numeric values[1] and trying to avoid having to reindex ~250GB DBs (and asking numerous users to do the same). Say I have a bunch of values which I want to filter a query against. If I had boolean terms, it could just OP_OR against the whole set. IOW, this is what notmuch does
2013 Sep 22
2
How to filter search result with query with has white space.
...exit(1); }} void searchData(std::string query_string){ try{ Xapian::Database db("/Users/ramesh/Desktop/xapian"); Xapian::Enquire enquire(db); Xapian::QueryParser qp; Xapian::Stem stemmer("english"); qp.set_default_op(Xapian::Query::OP_FILTER); qp.set_stemmer(stemmer); qp.add_prefix("","title"); qp.add_prefix("","content"); qp.add_boolean_prefix("title","title"); qp.set_database(db); qp.set_stemming_strategy(Xapian::QueryParser::S...
2013 Sep 22
2
How to filter search result with query with has white space.
...exit(1); }} void searchData(std::string query_string){ try{ Xapian::Database db("/Users/ramesh/Desktop/xapian"); Xapian::Enquire enquire(db); Xapian::QueryParser qp; Xapian::Stem stemmer("english"); qp.set_default_op(Xapian::Query::OP_FILTER); qp.set_stemmer(stemmer); qp.add_prefix("","title"); qp.add_prefix("","content"); qp.add_boolean_prefix("title","title"); qp.set_database(db); qp.set_stemming_strategy(Xapian::QueryParser::S...
2017 Sep 12
2
perl bindings to Xapian::Query
...ork according to the perl source:     my $query = $qp->parse_query($querystr);     if ($datefilter) {         my $filterepoch = time() - ($datefilter * 60 * 60 * 24);         my $filterquery = Xapian::Query->new(OP_VALUE_GE,I_DATE,$filterepoch);         $query = Xapian::Query->new(OP_FILTER,$query,$filterquery);     } This appears to die on Xapian::Query->new with   No matching function for overloaded 'new_Query' at /usr/local/lib/perl5/site_perl/Xapian.pm line 1282. I see in Xapian.pm where Xapian::Query attempts to call Xapianc::new_Query . Is there some other way...