Johannes, If you just want to implement a custom search syntax, Solr can be great for this. You just need a "Solr query parser" which takes a search string and allows you to translate that into any number of Lucene queries. These are fairly straightforward to implement with a small amount of Lucene knowledge: http://java.dzone.com/articles/create-custom-solr-queryparser
If the existing Lucene queries don't fit the bill, and you need something more advanced you can build custom Lucene queries. I have blogged and spoken about this topic, you might find these links useful: http://opensourceconnections.com/blog/2014/01/20/build-your-own-custom-lucene-query-and-scorer/ http://opensourceconnections.com/blog/2014/03/12/using-customscorequery-for-custom-solrlucene-scoring/ Corresponding presentation: http://apacheconnorthamerica2014.sched.org/event/5e312d30375eb43733abc9b7506646e3#.VT-D5WXsl4s https://www.youtube.com/watch?v=UotgfwNpqrs Hope that helps, -- *Doug Turnbull **| *Search Relevance Consultant | OpenSource Connections, LLC | 240.476.9983 | http://www.opensourceconnections.com Author: Taming Search <http://manning.com/turnbull> from Manning Publications This e-mail and all contents, including attachments, is considered to be Company Confidential unless explicitly stated otherwise, regardless of whether attachments are marked as such. On Tue, Apr 28, 2015 at 4:01 AM, Johannes Ruscheinski < johannes.ruschein...@uni-tuebingen.de> wrote: > Hi, > > I am entirely new to the world of SOLR programming and I have the > following questions: > > In addition to our regular searches we need to implement a specialised > form of range search and ranking. What I mean by this is that users can > search for one or more numeric ranges like "17:85,205:303" etc. (These > are range-begin/range-end pairs.) A small percentage of our records, > maybe less than 10% will have similar ranges, again, one or more, stored > in a SOLR field. We need to apply a custom scoring function and filter > the matches, too. (Not all ranges match and scores will typically > differ greatly.) Where are all the places where we have to insert > code? Also, any tips on how to develop and debug this? I am using the > Linux command-line and Emacs. I am linking against SOLR by using "javac > -cp solr-core-4.2.1.jar:. my_code.java". It is probably not relevant > but, I might mention it anyway: We are using SOLR as a part of VuFind. > > I'd be greatful for any suggestions. > > Thank you! > > --Johannes > > -- > Dr. Johannes Ruscheinski > Universitätsbibliothek Tübingen - IT-Abteilung - > Wilhelmstr. 32, 72074 Tübingen > > Tel: +49 7071 29-72820 > FAX: +49 7071 29-5069 > Email: johannes.ruschein...@uni-tuebingen.de > > >