Return-Path: Delivered-To: apmail-lucene-solr-user-archive@locus.apache.org Received: (qmail 96882 invoked from network); 21 Jan 2007 03:12:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Jan 2007 03:12:00 -0000 Received: (qmail 97005 invoked by uid 500); 21 Jan 2007 03:12:06 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 96985 invoked by uid 500); 21 Jan 2007 03:12:06 -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 96976 invoked by uid 99); 21 Jan 2007 03:12:06 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Jan 2007 19:12:06 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [169.229.70.167] (HELO rescomp.berkeley.edu) (169.229.70.167) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Jan 2007 19:11:57 -0800 Received: by rescomp.berkeley.edu (Postfix, from userid 1007) id 2ADB95B763; Sat, 20 Jan 2007 19:11:37 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by rescomp.berkeley.edu (Postfix) with ESMTP id 27F487F403 for ; Sat, 20 Jan 2007 19:11:37 -0800 (PST) Date: Sat, 20 Jan 2007 19:11:37 -0800 (PST) From: Chris Hostetter To: solr-user@lucene.apache.org Subject: Re: Using HTTP-Post for Queries In-Reply-To: Message-ID: References: <45B0CDA3.8040105@blue-elephant-systems.com> <32B0C639-FDFF-44ED-8526-C1E142CB2FAF@ehatchersolutions.com> <8453558.post@talk.nabble.com> <99B4B883-FCCD-4EB8-B06F-0B0BA370FF0C@ehatchersolutions.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org : Some syntaxes might come by default from solrcondig.xml, and some : might come from the request. : Also, if you just needed one span query, you wouldn't want to force : all other queries to be in the same syntax. Think about having to : change your faceting code that uses QueryParser queries because you : suddenly discovered you needed something that supported a span query : as the base query. Ugh ... dude ... i feel dirty just reading that sentence. : *But*, if we wanted to make it extensible (by allowing the inclusion : of other info about the query), then we would want to strip it off : before passing to the right query parser, so you are right. what kinds of other info are you thinking of? untill you brought all this up, i'd been assumign in the back of my mind that a smart thing to do if/when i had time was: 1) refactor StandardRequestHandler/DisMaxRequestHandler to have a common base class (Bertrand opened an issue on this, and i think it's in Ryan's SOLR-112 patch as a side effect) 2) do the magic code moving/splicing/inheriting thta would allow StandardRequestHandler to have a "sort" param like DisMax .. and only do the ";" q split logic if there isn't one .. probably a "getSort(SolrParams) method in the base class, inherited by dismax, overriden in standard with a call to super, and if null then split q) 3) add a getQueryParser(SolrParams) method to the base class, which returned a SolrQueryParser with q.op set and things like that .. dismax would use this for it's fq and q, standard would use this for everything. 4) now it's easy to subclass StandardRequestHandler as XmlQuerySyntaxRequestHandler or SurroundSyntaxRequestHandler just by overriding getQUeryParser. ..when you started talking about this i thought "yonik's approach is a much better idea" but given some of the issues you've pointed out about dealing with multiple query parsers in a single handler, i'm going back to my orriginal idea: if somome wants to start using surround syntax to get span queries, then yeah: maybe they should have to switch qhich requestHandler they use. -Hoss