Controlling Length of Text Snippets Before and After Highlighted Term

2008-10-01 Thread syoung
Hi All, I'm not sure if there is a way to do this. I have a requirement to display exactly 20 characters before and 20 characters after the highlighted term. Thanks, Susan -- View this message in context: http://www.nabble.com/Controlling-Length-of-Text-Snippets-Before-and-After-Highlighted-

Re: Setting request method to post on SolrQuery causes ClassCastException

2008-09-18 Thread syoung
dnetic > <[EMAIL PROTECTED]> wrote: >> A quick work-around is, I think, to tell Solr to use the non-binary >> response, e.g. &wt=xml (I think that's the "syntax"). >> >> Otis >> -- >> Sematext -- http://sematext.com/ -- Lucene - So

Setting request method to post on SolrQuery causes ClassCastException

2008-09-17 Thread syoung
Hi, I need to have queries over a certain length done as a post instead of a get. However, when I set the method to post, I get a ClassCastException. Here is the code: public QueryResponse query(SolrQuery solrQuery) { QueryResponse response = null; try { if (solrQuery.toString(