Re: Error Response as HTML in Solr 1.2
Ryan McKinley schrieb: > Maximilian Hütter wrote: >> Hi all, >> >> I switched to Solr version 1.2 and found that the response format >> changed completely for the error responses (for updates), which are >> delivered as HTML-Pages. > > Check the status code for the response. Anything not OK will have some > code != 200. Using java's HttpURLConnection, you can get all the error > information from: > getResponseCode() > getResponseMessage() > Other languages will have similar functions. The HTML decoration is > added from the servlet containter -- it does not have any extra > information. > >> >> Before it was just XML coming back in all cases. Is there a way to >> change this to XML? Some switch in the solrconfig.xml I didn't see? >> > > Check the 'Upgrading from Solr 1.1' paragraph in CHANGES.txt > http://svn.apache.org/repos/asf/lucene/solr/tags/release-1.2.0/CHANGES.txt > > In short, to have identical behavior from 1.1 make sure there is not a > request handler mapped to /update > > ryan > I'm using a servicemix-http component to access solr, so I can't really use the HttpURLConnection. I can check for the Http status, but I can't check the error response. I will try to change the requesthandler on update. Best regards, max -- Maximilian Hütter blue elephant systems GmbH Wollgrasweg 49 D-70599 Stuttgart Tel: (+49) 0711 - 45 10 17 578 Fax: (+49) 0711 - 45 10 17 573 e-mail : [EMAIL PROTECTED] Sitz : Stuttgart, Amtsgericht Stuttgart, HRB 24106 Geschäftsführer: Joachim Hörnle, Thomas Gentsch, Holger Dietrich
How to use AND / OR with DismaxRequestHandler?
Hello, I have a couple questions about the DismaxRequestHandler. I am using it, because I want to use the boosting mechanism, but I can't get the following to work : We also have an advanced search where users can search for : * An exact combination of words * All the words * One of the words * Part of a word This is a bit like the advanced search from google. Can this be done when using the DismaxRequestHandler? I did a test with 2 queries : * post OR lettre * post AND lettre When using the DismaxRequestHandler I get the same search results, with the StandardRequestHandler, the OR query gives me much more results than the AND. Can someone explain to me how to use OR and AND with the DismaxRequestHandler? Thank you.
Re: How to use AND / OR with DismaxRequestHandler?
Not sure you can, but if it helps you can use boosting in the standard request handler: post AND lettre _val_:"recip(popularityRank,1,1000,1000)^2.5" -Nick On 7/2/07, Thierry Collogne <[EMAIL PROTECTED]> wrote: Hello, I have a couple questions about the DismaxRequestHandler. I am using it, because I want to use the boosting mechanism, but I can't get the following to work : We also have an advanced search where users can search for : * An exact combination of words * All the words * One of the words * Part of a word This is a bit like the advanced search from google. Can this be done when using the DismaxRequestHandler? I did a test with 2 queries : * post OR lettre * post AND lettre When using the DismaxRequestHandler I get the same search results, with the StandardRequestHandler, the OR query gives me much more results than the AND. Can someone explain to me how to use OR and AND with the DismaxRequestHandler? Thank you.
Specific fields with DisMaxQueryHandler
Hi , when we use DisMaxQueryHandler, queries that includes specific fields which are not part of the boost string doesn't seem to work. For instance, If the boost string ( qf ) is 'a^3 b^4' and my query is 'term +c:term2' , it doesnt produce any result. Am I using this QueryHandler the bad way ? Thanks for your help. Jerome. -- Jerome Eteve. [EMAIL PROTECTED] http://jerome.eteve.free.fr/
Re: Specific fields with DisMaxQueryHandler
Indeed, you should not include fields in the query itself, qf is the parameter that takes the fields to search for, with optional boosts hth Paul On 7/2/07, Jérôme Etévé <[EMAIL PROTECTED]> wrote: Hi , when we use DisMaxQueryHandler, queries that includes specific fields which are not part of the boost string doesn't seem to work. For instance, If the boost string ( qf ) is 'a^3 b^4' and my query is 'term +c:term2' , it doesnt produce any result. Am I using this QueryHandler the bad way ? Thanks for your help. Jerome. -- Jerome Eteve. [EMAIL PROTECTED] http://jerome.eteve.free.fr/
Re: How to use AND / OR with DismaxRequestHandler?
Hi Take a look at the query parameters it supports: http://wiki.apache.org/solr/DisMaxRequestHandler An exact combination (phrase), all of the words or one are possible: you can use the mm parameter (100% and 1 for your case). Part of a word is not possible, nor explicit query fields in the q parameter. hth Paul On 7/2/07, Thierry Collogne <[EMAIL PROTECTED]> wrote: Hello, I have a couple questions about the DismaxRequestHandler. I am using it, because I want to use the boosting mechanism, but I can't get the following to work : We also have an advanced search where users can search for : * An exact combination of words * All the words * One of the words * Part of a word This is a bit like the advanced search from google. Can this be done when using the DismaxRequestHandler? I did a test with 2 queries : * post OR lettre * post AND lettre When using the DismaxRequestHandler I get the same search results, with the StandardRequestHandler, the OR query gives me much more results than the AND. Can someone explain to me how to use OR and AND with the DismaxRequestHandler? Thank you.
Re: How to use AND / OR with DismaxRequestHandler?
The 1 and 100% did it. But I am not sure how I can do the exact combination (phrase). Could you tell me, please? On 02/07/07, Paul Borgermans <[EMAIL PROTECTED]> wrote: Hi Take a look at the query parameters it supports: http://wiki.apache.org/solr/DisMaxRequestHandler An exact combination (phrase), all of the words or one are possible: you can use the mm parameter (100% and 1 for your case). Part of a word is not possible, nor explicit query fields in the q parameter. hth Paul On 7/2/07, Thierry Collogne <[EMAIL PROTECTED]> wrote: > Hello, > > I have a couple questions about the DismaxRequestHandler. I am using it, > because I want to use the boosting mechanism, but I can't get the following > to work : > > We also have an advanced search where users can search for : > > * An exact combination of words > * All the words > * One of the words > * Part of a word > > This is a bit like the advanced search from google. > > Can this be done when using the DismaxRequestHandler? I did a test with 2 > queries : > * post OR lettre > * post AND lettre > > When using the DismaxRequestHandler I get the same search results, with the > StandardRequestHandler, the OR query gives me much more results than the > AND. > > Can someone explain to me how to use OR and AND with the > DismaxRequestHandler? > > Thank you. >
How to do a wildcard search in solr?
Hello, I am trying to do a wildcard search in Solr. In lucene I could pass the query post* and get all the results containg a word beginning with post. When I do the same in Solr, it doesn't work. Adding the wildcard gives me less results, this should be the opposite. Do I need to configure the wildcard search somewhere, or is this not supported by Solr? Thank you.
Re: How to use AND / OR with DismaxRequestHandler?
dismax is designed for usecases like... * users enter a handfull of words (albino elephant gift) * users enter some words, with prefixes indicating some are required and some are prohibited (albino +elephand -gift) * users enter words or phrases ("albino elephant" gift) as far as AND/OR/NOT type logic, if it's the user telling you what they want (ie: this term must be there, this term can't be there) that's where the +/- syntax comes in; if it's a question of "how much flexibility should i allow for matching on the terms that aren't mandatory/prohibited?" that's where the "mm" option comes in. : > http://wiki.apache.org/solr/DisMaxRequestHandler i *just* updated that wiki page on friday with some specifics on the params and usage ... but by all means anyone else out there using dismax, *PLEASE* update it as you see fit to help explain how it works and how to use it. -Hoss
Re: How to do a wildcard search in solr?
: I am trying to do a wildcard search in Solr. In lucene I could pass the : query post* and get all the results containg a word beginning with post. : When I do the same in Solr, it doesn't work. Adding the wildcard gives me : less results, this should be the opposite. can you give us a specific example of wht you are trying to do? what query handler you are using, what the request url looks like, what field you are trying to wilcard on and what it's fieldtype looks like in the schema.xml. off the top of my head i have to wonder if you are using the dismax handler ... it doesn't support wildcards in the "q" param. -Hoss
Solr Injection
Hi. I've been playing with Kettle (http://kettle.pentaho.org/ ) as a method to inject data into Solr (and other things at the same time), and it looks really promising. I was wondering if anyone else had some experience using it with Solr and if they set it up to add a document at a time, or wrote a single XML 'add' document and then added all of them in one lot Ideally I would like to have Solr accept a REST style URL without all the XML bs around and just pass the fields in as parameters (which is alluded to in http://issues.apache.org/jira/browse/SOLR-85 ) and just pound the Solr master with lots of little posts when I do incremental updates for < 1000 things and use the CSV uploader for larger things. Thoughts?