Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 36CA818FA9 for ; Wed, 18 Nov 2015 12:15:46 +0000 (UTC) Received: (qmail 84718 invoked by uid 500); 18 Nov 2015 12:15:45 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 84668 invoked by uid 500); 18 Nov 2015 12:15:45 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 84656 invoked by uid 99); 18 Nov 2015 12:15:44 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Nov 2015 12:15:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 31A70C3BC3 for ; Wed, 18 Nov 2015 12:15:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.879 X-Spam-Level: ** X-Spam-Status: No, score=2.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id VHouQkLb3_7O for ; Wed, 18 Nov 2015 12:15:43 +0000 (UTC) Received: from mail-oi0-f45.google.com (mail-oi0-f45.google.com [209.85.218.45]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 6BD7143DC8 for ; Wed, 18 Nov 2015 12:15:43 +0000 (UTC) Received: by oies6 with SMTP id s6so23671706oie.1 for ; Wed, 18 Nov 2015 04:15:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=CXUb0Um9ArUVDWGz1hQjlyYL4Bsb2cnfbD5NyKa7g0A=; b=nIRM4HJIHoq/cNy3kukpbo28nI6fF9+SOm0gK8gUNhcKs9ampP5FSLqOfCZQZgJG9b I5fKYLUu+P+5kpimHEsqZ5dAXw7MztX5/crB8/wCYbdbq+9xsxkd+y2RqJ5kBJSnZH/x Z30OxKhebBoLwsQTH3GrAoVhHuO+EqeRnudXIKu6sKC/BPe8TPCkGjrroOaD/axdN/Wh aybohFNZ6EyWp8LvsqAlqu4ExXfzXA8AruxAyiN2sKtOOPdKLI92LegbtG3mZGzZr5F8 ByXLVrvdpRGomwFmhHqUqUneOrvEufomwSQ5yQgTnYteTXF0Vhw1ELj0H2NAiV3R98Tc 4E9w== X-Received: by 10.202.45.206 with SMTP id t197mr548063oit.110.1447848942965; Wed, 18 Nov 2015 04:15:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.202.191.194 with HTTP; Wed, 18 Nov 2015 04:15:23 -0800 (PST) From: =?UTF-8?Q?Mehmet_Ba=C5=9Fal?= Date: Wed, 18 Nov 2015 14:15:23 +0200 Message-ID: Subject: How To Index With Multiple Priorities To: Lucene Users Content-Type: multipart/alternative; boundary=001a1137b4f8ef18ef0524cf998b --001a1137b4f8ef18ef0524cf998b Content-Type: text/plain; charset=UTF-8 Hello, I have different lists that consist of products. And each product in list has a priority that specific to list. For example; List A: product_id - priority 1 10 2 25 3 30 List B: product_id - priority 3 10 4 25 5 30 So question is how should i index those list with lucene to make a query like this: get products of B list and sort them with priorities that they have in B. Thanks in advance. --001a1137b4f8ef18ef0524cf998b--