Re: Duplicates in MultiValued fields

2006-06-20 Thread Yonik Seeley
On 6/21/06, Mike Richmond <[EMAIL PROTECTED]> wrote: Is there anyway to not allow duplicates inside of a mutivalued field using Solr? Not currently. Do you want uniqueness within a single document, or across many documents? If it's within a single document, this is probably easiest to implemen

Duplicates in MultiValued fields

2006-06-20 Thread Mike Richmond
Is there anyway to not allow duplicates inside of a mutivalued field using Solr? Thanks, Mike

Re: newbie Q regarding schema configuration

2006-06-20 Thread Ian Holsman
thanks for the input Chris (and Yonik) i'm not sure lucene is the best answer for what I want to do ;( regards Ian On 20/06/2006, at 5:58 PM, Chris Hostetter wrote: : so.. my first question in schema.xml, can you have a composite key as : the 'uniquekey' field, or do i need to do this on t

Re: Error posting document

2006-06-20 Thread Chris Hostetter
: Yeah, Solr currently only accepts an HTTP-POST with an XML document as : the post body. That's not what you will get with a browser-based form : data / file post. Also, if i'm reading this comment correctly... : > It happens to be the form I am submitting it from, here is the output: ...then

Re: Invalid XML returned from Solr

2006-06-20 Thread Mike Richmond
Hi Yonik, Thanks again for the quick help. I switched to Tomcat and all the problems went away. Not sure what the process would be but I'd be willing to migrate the example application to tomcat and update the existing documentation. I would like to give back to this project as it has done quit

Re: Error posting document

2006-06-20 Thread Yonik Seeley
Yeah, Solr currently only accepts an HTTP-POST with an XML document as the post body. That's not what you will get with a browser-based form data / file post. -Yonik On 6/20/06, Kerry Wilson <[EMAIL PROTECTED]> wrote: It is happening on all documents but just for fun here is one I have used:

Re: Error posting document

2006-06-20 Thread Kerry Wilson
It is happening on all documents but just for fun here is one I have used: Post to SOLR http://localhost:8080/solr/update"; method="POST"> It happens to be the form I am submitting it from, here is the output: org.xmlpull.v1.XmlPullParserException: only whitespac

Re: Error posting document

2006-06-20 Thread Yonik Seeley
On 6/20/06, Kerry Wilson <[EMAIL PROTECTED]> wrote: I am getting the following error when trying to post any document. Hi Kerry, could you provide an example document that show this? -Yonik

Error posting document

2006-06-20 Thread Kerry Wilson
I am getting the following error when trying to post any document. org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not = (position: START_DOCUMENT seen =... @1:1) at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1519) at org.xmlpull.mxp1.M

Re: Invalid XML returned from Solr

2006-06-20 Thread Yonik Seeley
I've confirmed this is a Jetty bug related to international chars (>=128) and their output writer. When I moved the example to Tomcat 5.5, everything worked as expected. For the exact same Lucene index file, Tomcat outputs I¹ll and Jetty outputs I¹ll We should really look into

Re: Invalid XML returned from Solr

2006-06-20 Thread Mike Richmond
Hi Yonik, Thanks for the quick reply. I am willing to give you access to my index, config files, or any other pieces that you may need if it would help. I am basically running the example application (which uses Jetty), but with a modified schema.xml and a couple other small changes. I'll look

Re: Invalid XML returned from Solr

2006-06-20 Thread Yonik Seeley
On 6/20/06, Mike Richmond <[EMAIL PROTECTED]> wrote: I have a application that I recently ported to Solr and am running into a few problems with the XML responses from Solr. An XML response which came from a Solr query, returned XML data that was not properly escaped (no CDATA tag, or entity sub

Invalid XML returned from Solr

2006-06-20 Thread Mike Richmond
I have a application that I recently ported to Solr and am running into a few problems with the XML responses from Solr. An XML response which came from a Solr query, returned XML data that was not properly escaped (no CDATA tag, or entity substitution). In particular the "summary" field contain

Re: Wildcard Query

2006-06-20 Thread Yonik Seeley
On 6/20/06, Pace Davis <[EMAIL PROTECTED]> wrote: Thanks for all the help. The only field where I need this is to search sku fields...example being "19-JN910" The search needs to be able to pull a match if the query were "JN" ...Erik's solution is the way to go and simple to implement. For SK

Re: newbie Q regarding schema configuration

2006-06-20 Thread Yonik Seeley
can you have complex types which are multivalued? I'd like to store something like a tag-name with a corresponding tag-weighting. How much work it is might depend on how static or dynamic the tag-weighting is. If it's very static, you could simply use index-time boosts. can you do sum(*) type

Re: Wildcard Query

2006-06-20 Thread Pace Davis
Thanks for all the help. The only field where I need this is to search sku fields...example being "19-JN910" The search needs to be able to pull a match if the query were "JN" ...Erik's solution is the way to go and simple to implement. > From: "Yonik Seeley" <[EMAIL PROTECTED]> > Reply-To:

Re: Wildcard Query

2006-06-20 Thread Yonik Seeley
On 6/20/06, Pace Davis <[EMAIL PROTECTED]> wrote: I have been using Lucene for about a month now and trying to port the same functionality to Solr. How do I do a wildcard query with a leading "*" ...This is possible with Lucene if you do not use the standard query parser. It's not really poss

Re: Wildcard Query

2006-06-20 Thread Bill Au
If it is just a matter of matching lower case to upper case and upper case to lower case, one can simply use the LowercaseFilter. Bill On 6/20/06, Erik Hatcher <[EMAIL PROTECTED]> wrote: On Jun 20, 2006, at 6:07 AM, Pace Davis wrote: > Ok, before I go start writing a new request handlerlet

Re: Wildcard Query

2006-06-20 Thread Erik Hatcher
On Jun 20, 2006, at 6:07 AM, Pace Davis wrote: Ok, before I go start writing a new request handlerlet me ask a dumb question and see if I am approaching this wrong in Solr. If I am trying to search a field where I have one doc with a field that has a value of "Hello World"...if the searc

Re: Wildcard Query

2006-06-20 Thread Pace Davis
Ok, before I go start writing a new request handlerlet me ask a dumb question and see if I am approaching this wrong in Solr. If I am trying to search a field where I have one doc with a field that has a value of "Hello World"...if the search query is "ello" ...currently is there a way to make

Re: Wildcard Query

2006-06-20 Thread Chris Hostetter
: I have been using Lucene for about a month now and trying to port the same : functionality to Solr. How do I do a wildcard query with a leading "*" : ...This is possible with Lucene if you do not use the standard query : parser. How do you do this with Solr This is probably very easy but

Re: newbie Q regarding schema configuration

2006-06-20 Thread Chris Hostetter
: so.. my first question in schema.xml, can you have a composite key as : the 'uniquekey' field, or do i need to do this on the client side? at the moment this would need to be done client site, but you're not the first person to ask so i've added it to the TaskList ... it doesn't seem like it wo