Re: Using HTTP-Post for Queries

2007-01-31 Thread Yonik Seeley
On 1/31/07, Maximilian Hütter <[EMAIL PROTECTED]> wrote: Posting a "normal" query-string would be fine, but that doesn't seem to work... I tried the solr-1.1.0 with Jetty (as in the tutorial) using curl. My request: curl -F q=solr http://localhost:8983/solr/select/ (after loading the xml example

Re: Using HTTP-Post for Queries

2007-01-31 Thread Maximilian Hütter
Erik Hatcher schrieb: > > On Jan 24, 2007, at 9:38 AM, Maximilian Hütter wrote: >> Erik Hatcher schrieb: >>> >>> On Jan 22, 2007, at 4:09 AM, Maximilian Hütter wrote: Is there a XMLQueryParser yet? I didn't find it in the source. >>> >>> Yes - it's part Lucene's contrib area: >>> >>>

Re: Using HTTP-Post for Queries

2007-01-24 Thread Erik Hatcher
On Jan 24, 2007, at 9:38 AM, Maximilian Hütter wrote: Erik Hatcher schrieb: On Jan 22, 2007, at 4:09 AM, Maximilian Hütter wrote: Is there a XMLQueryParser yet? I didn't find it in the source. Yes - it's part Lucene's contrib area:

Re: Using HTTP-Post for Queries

2007-01-24 Thread Maximilian Hütter
Erik Hatcher schrieb: > > On Jan 22, 2007, at 4:09 AM, Maximilian Hütter wrote: >> Is there >> a XMLQueryParser yet? I didn't find it in the source. > > Yes - it's part Lucene's contrib area: > > > > > > You'll

Re: Using HTTP-Post for Queries

2007-01-22 Thread Yonik Seeley
On 1/22/07, Erik Hatcher <[EMAIL PROTECTED]> wrote: On Jan 21, 2007, at 11:12 PM, Yonik Seeley wrote: > On 1/21/07, Erik Hatcher <[EMAIL PROTECTED]> wrote: >> Yes, I think different syntaxes in different places would be useful. >> For example, a user enters a full-text search query that is suita

Re: Using HTTP-Post for Queries

2007-01-22 Thread Erik Hatcher
On Jan 21, 2007, at 11:12 PM, Yonik Seeley wrote: On 1/21/07, Erik Hatcher <[EMAIL PROTECTED]> wrote: Yes, I think different syntaxes in different places would be useful. For example, a user enters a full-text search query that is suitable to use with Solr's QueryParser, and then the user facet

Re: Using HTTP-Post for Queries

2007-01-22 Thread Erik Hatcher
On Jan 22, 2007, at 4:09 AM, Maximilian Hütter wrote: Is there a XMLQueryParser yet? I didn't find it in the source. Yes - it's part Lucene's contrib area: You'll have to build the JAR and put it into Solr's WA

Re: Using HTTP-Post for Queries

2007-01-22 Thread Maximilian Hütter
Thank you for the answers, the idea was to use Solr with REST. Is there a XMLQueryParser yet? I didn't find it in the source. Max Erik Hatcher schrieb: > Also consider that I expect Solr to support the XMLQueryParser at some > point in the near future, which would be POSTed in a body for a search

Re: Using HTTP-Post for Queries

2007-01-21 Thread Yonik Seeley
On 1/21/07, Yonik Seeley <[EMAIL PROTECTED]> wrote: Another syntax option... something like !term:myfield:my unescaped value all as a singe term #term: %term: @term: (basically, find a prefix that would be unlikely to appear as an actual term or wildcard in lucene queryparser syntax) More bra

Re: Using HTTP-Post for Queries

2007-01-21 Thread Yonik Seeley
On 1/21/07, Erik Hatcher <[EMAIL PROTECTED]> wrote: On Jan 20, 2007, at 9:23 PM, Chris Hostetter wrote: > : > In the back of my mind, I've been thinking about *how* to support > : > multiple query syntaxes. > : > trying to add new parameters everywhere specifying the type > doesn't > : > seem lik

Re: Using HTTP-Post for Queries

2007-01-21 Thread Erik Hatcher
On Jan 20, 2007, at 9:23 PM, Chris Hostetter wrote: : > In the back of my mind, I've been thinking about *how* to support : > multiple query syntaxes. : > trying to add new parameters everywhere specifying the type doesn't : > seem like a great idea (way too many places). : Good point. Yeah

Re: Using HTTP-Post for Queries

2007-01-21 Thread Chris Hostetter
: > 4) now it's easy to subclass StandardRequestHandler as : > XmlQuerySyntaxRequestHandler or SurroundSyntaxRequestHandler : > just by overriding getQUeryParser. : Blech. All the other ideas are good, and rather orthogonal to : declaring the syntax in the query itself. yeah ... i didn't say i

Re: Using HTTP-Post for Queries

2007-01-20 Thread Yonik Seeley
On 1/20/07, Chris Hostetter <[EMAIL PROTECTED]> wrote: what kinds of other info are you thinking of? minimum slop, default operator, how much to expand fuzzy queries, etc. More just leave the door open in the future rather than implementing now. untill you brought all this up, i'd been assumi

Re: Using HTTP-Post for Queries

2007-01-20 Thread Chris Hostetter
: 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 be

Re: Using HTTP-Post for Queries

2007-01-20 Thread Yonik Seeley
On 1/20/07, Chris Hostetter <[EMAIL PROTECTED]> wrote: : > In the back of my mind, I've been thinking about *how* to support : > multiple query syntaxes. : > trying to add new parameters everywhere specifying the type doesn't : > seem like a great idea (way too many places). : Good point. Yeah

Re: Using HTTP-Post for Queries

2007-01-20 Thread Chris Hostetter
: > In the back of my mind, I've been thinking about *how* to support : > multiple query syntaxes. : > trying to add new parameters everywhere specifying the type doesn't : > seem like a great idea (way too many places). : Good point. Yeah, it does make sense for the query type to be part : of t

Re: Using HTTP-Post for Queries

2007-01-20 Thread Erik Hatcher
On Jan 20, 2007, at 12:44 AM, Yonik Seeley wrote: On 1/19/07, Erik Hatcher <[EMAIL PROTECTED]> wrote: Also consider that I expect Solr to support the XMLQueryParser at some point in the near future I had always planned on supporting an XML query format, but I never got a chance to review the

Re: Using HTTP-Post for Queries

2007-01-19 Thread Yonik Seeley
On 1/19/07, Erik Hatcher <[EMAIL PROTECTED]> wrote: Also consider that I expect Solr to support the XMLQueryParser at some point in the near future I had always planned on supporting an XML query format, but I never got a chance to review the XMLQueryParser now in Lucene to see if I like it. D

Re: Using HTTP-Post for Queries

2007-01-19 Thread Erik Hatcher
Also consider that I expect Solr to support the XMLQueryParser at some point in the near future, which would be POSTed in a body for a search request. Being RESTful is something I strive for all too often myself, and using HTTP verbs appropriately. But pragmatically speaking, a POST to So

Re: Using HTTP-Post for Queries

2007-01-19 Thread Yonik Seeley
On 1/19/07, Brian Lucas <[EMAIL PROTECTED]> wrote: Walter Underwood wrote: > Use GET unless it really, really, really doesn't work. POST is > the wrong HTTP semantic for fetching information. Long query > strings are not a good enough reason. HTTP puts no limit on the > length of a URL. > Walter

Re: Using HTTP-Post for Queries

2007-01-19 Thread Walter Underwood
On 1/19/07 10:02 AM, "Brian Lucas" <[EMAIL PROTECTED]> wrote: > Walter Underwood wrote: >> >> Use GET unless it really, really, really doesn't work. POST is >> the wrong HTTP semantic for fetching information. Long query >> strings are not a good enough reason. HTTP puts no limit on the >> length

Re: Using HTTP-Post for Queries

2007-01-19 Thread Brian Lucas
/www.nabble.com/Using-HTTP-Post-for-Queries-tf3039973.html#a8453558 Sent from the Solr - User mailing list archive at Nabble.com.

Re: Using HTTP-Post for Queries

2007-01-19 Thread Walter Underwood
On 1/19/07 6:09 AM, "Erik Hatcher" <[EMAIL PROTECTED]> wrote: > On Jan 19, 2007, at 8:54 AM, Maximilian Hütter wrote: >> Can I query Solr using Post-Requests instead of Get? > > Yes. This is in fact how it is done in solrb, because the query > string will get too large: Use GET unless it really,

Re: Using HTTP-Post for Queries

2007-01-19 Thread Erik Hatcher
On Jan 19, 2007, at 8:54 AM, Maximilian Hütter wrote: Can I query Solr using Post-Requests instead of Get? Yes. This is in fact how it is done in solrb, because the query string will get too large:

Using HTTP-Post for Queries

2007-01-19 Thread Maximilian Hütter
Can I query Solr using Post-Requests instead of Get? Best regards!