Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 268EA868E for ; Mon, 8 Aug 2011 20:50:32 +0000 (UTC) Received: (qmail 61745 invoked by uid 500); 8 Aug 2011 20:50:29 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 61687 invoked by uid 500); 8 Aug 2011 20:50:28 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 61679 invoked by uid 99); 8 Aug 2011 20:50:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2011 20:50:28 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [212.54.42.164] (HELO smtpq1.tb.mail.iss.as9143.net) (212.54.42.164) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2011 20:50:20 +0000 Received: from [212.54.42.150] (helo=smtp18.tb.mail.iss.as9143.net) by smtpq1.tb.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1QqWls-0007mU-9Y; Mon, 08 Aug 2011 22:50:00 +0200 Received: from 5249ddab.cm-4-2d.dynamic.ziggo.nl ([82.73.221.171] helo=relax.localnet) by smtp18.tb.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1QqWlq-0001LW-BV; Mon, 08 Aug 2011 22:49:58 +0200 From: Markus Jelsma Reply-To: markus.jelsma@openindex.io Organization: Openindex To: solr-user@lucene.apache.org Subject: Re: bug in termfreq? was Re: is it possible to do a sort without query? Date: Mon, 8 Aug 2011 22:49:41 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.35-30-generic; KDE/4.5.5; i686; ; ) Cc: Jason Toy References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201108082249.42174.markus.jelsma@openindex.io> X-ZiggoSMTP-MailScanner-Information: Please contact the ISP for more information X-ZiggoSMTP-MailScanner-ID: 1QqWlq-0001LW-BV X-ZiggoSMTP-MailScanner: Found to be clean X-ZiggoSMTP-MailScanner-SpamCheck: geen spam, SpamAssassin (niet cached, score=-2.719, vereist 5, autolearn=not spam, ALL_TRUSTED -1.00, BAYES_40 -0.00, CM_REPLY_NOARROW 0.30, PROLO_TRUST_RDNS -3.00, RDNS_DYNAMIC 0.98) X-ZiggoSMTP-MailScanner-From: markus.jelsma@openindex.io X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No > Aelexei, thank you , that does seem to work. > > My sort results seem to be totally wrong though, I'm not sure if its > because of my sort function or something else. > > My query consists of: > sort=termfreq(all_lists_text,'indie+music')+desc&q=*:*&rows=100 > And I get back 4571232 hits. That's normal, you issue a catch all query. Sorting should work but.. > All the results don't have the phrase "indie music" anywhere in their data. > Does termfreq not support phrases? No, it is TERM frequency and indie music is not one term. I don't know how this function parses your input but it might not understand your + escape and think it's one term constisting of exactly that. > If not, how can I sort specifically by termfreq of a phrase? You cannot. What you can do is index multiple terms as one term using the shingle filter. Take care, it can significantly increase your index size and number of unique terms. > > > > On Mon, Aug 8, 2011 at 1:08 PM, Alexei Martchenko < > > alexei@superdownloads.com.br> wrote: > > You can use the standard query parser and pass q=*:* > > > > 2011/8/8 Jason Toy > > > > > I am trying to list some data based on a function I run , > > > specifically termfreq(post_text,'indie music') and I am unable to do > > > it without passing in data to the q paramater. Is it possible to get > > > a > > > > sorted > > > > > list without searching for any terms? > > > > -- > > > > *Alexei Martchenko* | *CEO* | Superdownloads > > alexei@superdownloads.com.br | alexei@martchenko.com.br | (11) > > 5083.1018/5080.3535/5080.3533