search for: sort_key

Displaying 8 results from an estimated 8 matches for "sort_key".

2019 Jan 22
1
About xapian serialization on float/double variables
Dear Members of Xapian Project, Sorry for troubling you this time. It can be witnessed that xapian will store Document values with serialization approach when given value types meet float/double. Such an approach is deployed on sort_key related fields as well, where the xapian requires KeyMaker::operator() must return an serialized float/dobule variable. Then heap sort comes and ranks the vector<MSetItem> items (multimatch.cc MultiMatch::get_mset()) by comparing serialized sort_keys (std::string) straightforwardly according...
2006 Jul 08
4
Hidden fields in forms
..."> <% hidden_field ''line_item'', ''client_id'', :value => session[:client_id] %> <% hidden_field ''line_item'', ''product_id'', :value => 999999 %> <% hidden_field ''line_item'', ''sort_key'', :value => "saa" %> <% hidden_field ''line_item'', ''category'', :value => "adi" %> <% hidden_field ''line_item'', ''model'', :value => "additional item" %> <% hidden_f...
2023 Aug 18
1
does Xapian::Enquire hold an MVCC revision?
...is won't reduce your heap usage (at least not peak usage). Is the heap usage problematic? Looking at the code, for git master each entry is currently: double weight; Xapian::docid did; Xapian::doccount collapse_count; std::string collapse_key; std::string sort_key; We're always going to need the docid, but the other fields aren't always needed and this could be slimmed down depending on what options are in use if the size is causing problems. It is as it is just for simplicity really. If you're using libstdc++ on a 64-bit architecture, std::st...
2014 Dec 18
4
Replace atoi and atol with strtol strtoul:Need Help
...Is it the entire string of sorted value number's as cgi_params is multimap and find returns the iterator at which it find the element containing the key value ? And I am not sure whether to modify atoi over here. val = cgi_params.find("SORT"); if (val != cgi_params.end()) { sort_key = atoi(val->second.c_str()); Thank You, Priyank Bhatt On 17 December 2014 at 03:38, Olly Betts <olly at survex.com> wrote: > > On Wed, Dec 17, 2014 at 01:15:12AM +0530, Priyank Bhatt wrote: > > I came across this function *HtmlParser::decode_entities(string &s)* in > &...
2023 Aug 17
1
does Xapian::Enquire hold an MVCC revision?
In other words, is it possible to avoid duplicates if new documents are inserted into the DB by another process in-between ->get_mset calls when reusing Xapian::Enquire objects? I do some expensive processing on each mset window, so I always limit the results to limit heap usage even if I'm planning on going through a big chunk of the DB: $mset = $enq->get_mset(0, 1000);
2014 Dec 16
2
Replace atoi and atol with strtol strtoul:Need Help
Hello , I came across this function *HtmlParser::decode_entities(string &s)* in *xapian-application/omega/htmlparse.cc* which basically does is extract hex value if any or extract number.For extracting number atoi is used and value returned by it is stored in variable "val" , I think so replacing atoi with strtoul would be useful here as number can have larger value although the
2012 Apr 27
4
GSoC xapian node binding
Posting recent offline discussion... On Fri, Apr 27, 2012 at 10:55 AM, Marius Tibeica <mtibeica at gmail.com> wrote: > Hi Liam, > > I've added the Enquire class and designed a query spec structured as a JS > object. Hope you like it :) > I'll probably be off a few days (there is a national holiday Tuesday which > means i have a long weekend :D) but maybe I'll
2009 Sep 30
17
Apache2.2 + what to get Rails
Me: not experienced with Rails or Ruby, Problem: Ubuntu 9.04 server in my shop ...couldn''t get Apache2.2 + Passenger + Rails to work for Redmine. (No answer at Redmine list and I don''t think its their problem anyway). Also couldn''t get Apache2.2 and just Rails to work, though some people said it would. Webrick works. Goal: run Redmine on a server that also runs PHP