Re: how to create a custom type in Solr

2010-08-16 Thread Thomas Joiner
Thanks you very much. I know the feeling, I've definitely had times when I just got busy and didn't reply, but I've had plenty to do that didn't require that to be done first, so no worries. Thanks, Thomas On Mon, Aug 16, 2010 at 9:14 AM, Mark Allan wrote: > Hi Thomas, > > Sorry for not replyi

Re: how to create a custom type in Solr

2010-08-16 Thread Mark Allan
Hi Thomas, Sorry for not replying before now - I've had your email flagged in my mail client to remind me to reply, but I've been so busy recently I never got round to it. I'll package up the necessary java files and send you the attachment directly instead of posting a zip file to the ma

Re: how to create a custom type in Solr

2010-08-16 Thread Thomas Joiner
Sorry to bother you, but since I haven't had a reply in a week, I figured I'd try asking again... What build of Solr are you using personally? Are you just using a nightly build, or is there a specific build that you are using? Has it had any major screw-ups for you? And I still would love to s

Re: how to create a custom type in Solr

2010-08-09 Thread Thomas Joiner
I'd love to see your code on this, however what I've really been wondering is the following: When did AbstractSubTypeFieldType get added? It isn't in 1.4.1 (as far as I can tell that's the latest one that is bundled on their site). So, do I just need to grab it from subversion, and build it? And

Re: how to create a custom type in Solr

2010-08-09 Thread Mark Allan
On 9 Aug 2010, at 1:01 pm, Otis Gospodnetic wrote: Mark, A good way to get your changes/improvements into Solr is by putting them in JIRA. Please see http://wiki.apache.org/solr/HowToContribute Thanks! Otis Hi Otis, For the class which requires only minor modifications, I tested it to

Re: how to create a custom type in Solr

2010-08-09 Thread Otis Gospodnetic
Message > From: Mark Allan > To: solr-user@lucene.apache.org > Sent: Mon, August 9, 2010 4:04:29 AM > Subject: Re: how to create a custom type in Solr > > I see you have the exact same requirements I did and have also hit the same >problem I did a month-or-so ago. I ende

Re: how to create a custom type in Solr

2010-08-09 Thread Mark Allan
I see you have the exact same requirements I did and have also hit the same problem I did a month-or-so ago. I ended up writing a custom field type based on solr.schema.PointType and making some very minor modifications to one of the Solr classes (AbstractSubfieldType) to allow the field a

Re: how to create a custom type in Solr

2010-08-06 Thread Lance Norskog
Use OR between multiple ranges. On Fri, Aug 6, 2010 at 8:52 AM, Thomas Joiner wrote: > This will work for a single range.  However, I may need to support multiple > ranges, is there a way to do that? > > On Fri, Aug 6, 2010 at 10:49 AM, Jan Høydahl / Cominvent < > jan@cominvent.com> wrote: >

Re: how to create a custom type in Solr

2010-08-06 Thread Thomas Joiner
This will work for a single range. However, I may need to support multiple ranges, is there a way to do that? On Fri, Aug 6, 2010 at 10:49 AM, Jan Høydahl / Cominvent < jan@cominvent.com> wrote: > Your use case can be solved by splitting the range into two int's: > > Document: {title: My doc

Re: how to create a custom type in Solr

2010-08-06 Thread Jan Høydahl / Cominvent
Your use case can be solved by splitting the range into two int's: Document: {title: My document, from: 8000, to: 9000} Query: q=title:"My" AND (from:[* TO 8500] AND to:[8500 TO *]) -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com Training in Europe - www.solrtraining.co

how to create a custom type in Solr

2010-08-06 Thread Thomas Joiner
I need to have a field that supports ranges...for instance, you specify a range of 8000 to 9000 and if you search for 8500, it will hit. However, when googling, I really couldn't find any resources on how to create your own field type in Solr. But from what I was able to find, the AbstractSubType