From general-return-3039-apmail-lucene-general-archive=lucene.apache.org@lucene.apache.org Sun Feb 27 10:31:48 2011 Return-Path: Delivered-To: apmail-lucene-general-archive@www.apache.org Received: (qmail 13972 invoked from network); 27 Feb 2011 10:31:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Feb 2011 10:31:48 -0000 Received: (qmail 97923 invoked by uid 500); 27 Feb 2011 10:31:48 -0000 Delivered-To: apmail-lucene-general-archive@lucene.apache.org Received: (qmail 97653 invoked by uid 500); 27 Feb 2011 10:31:45 -0000 Mailing-List: contact general-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@lucene.apache.org Delivered-To: mailing list general@lucene.apache.org Received: (qmail 97639 invoked by uid 99); 27 Feb 2011 10:31:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Feb 2011 10:31:44 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=FREEMAIL_FROM,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.26 is neither permitted nor denied by domain of patrick.diviacco@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Feb 2011 10:31:37 +0000 Received: from ben.nabble.com ([192.168.236.152]) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1PtduG-000523-PL for general@lucene.apache.org; Sun, 27 Feb 2011 02:31:16 -0800 Date: Sun, 27 Feb 2011 02:31:16 -0800 (PST) From: aneuryzma To: general@lucene.apache.org Message-ID: <1298802676756-2587415.post@n3.nabble.com> Subject: Dealing with 3 different field-specific scores MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I have indexed collection consisting of docs with some textual fields, geographic coordinates and date/time fields. The queries I perform consists of a document of the collection to compare with all the rest of the collection. Therefore I need to know how to: 1. Build a complex query, more than just a bunch of words.. I need a structured query (actually the same structure used for the indexed docs.. in my specific case it is XML). 2. Integrate tf.idf score, harvesine score (for lat/lng) and time difference score into one score. I already have the formulas ready, I just need to know how to integrate them into Lucene. I know how can extend Query and Similarity class.. and I'm studying such classes, but I need some help how to do it (more than.. "give a look at Similarity documentation" if possible..) I can provide more info, if you tell me what you need to know! thanks -- View this message in context: http://lucene.472066.n3.nabble.com/Dealing-with-3-different-field-specific-scores-tp2587415p2587415.html Sent from the Lucene - General mailing list archive at Nabble.com.