lowercase text/strings to be used in list box

2007-10-19 Thread Ben Incani
I have a field which will only contain several values (that include spaces). I want to display a list box with all possible values by browsing the lucene terms. I have setup a field in the schema.xml file. fieldtype name=text_lc class=solr.TextField analyzer tokenizer

Re: Solr + Tomcat Undeploy Leaks

2007-10-19 Thread Ed Summers
On 10/18/07, Mike Klaas [EMAIL PROTECTED] wrote: I have a large number of servers, each running 1-2 containers, each having 1-2 solr deployments (fixed). If I want a new Solr instance, I just start a new container (possibly on a new server). I treat it like a process, and can shut it down

Re: Geographical distance searching

2007-10-19 Thread patrick o'leary
Hi Ryan Thanks for looking at it, yes definitely I'd like to contribute back. I'm currently working out some of the logistics to make it easier to maintain. I think I'd need a centralized project to do the releases from, it will have 2 sets of patches in 2 different trunks (lucene solr),

Re: GET_SCORES flag in SolrIndexSearcher

2007-10-19 Thread Chris Hostetter
: Besides the typo :), the only problem for what I want is the fact that it : returns null for a default score sort instead of setting : SortField.FIELD_SCORE. I want a default score desc sort, but I want the : scores from the lucene Hits object. Is the only way to get score values to : modify

Re: Solr, operating systems and globalization

2007-10-19 Thread Ken Krugler
On 18-Oct-07, at 11:43 AM, Chris Hostetter wrote: : This is easy--I always convert dates to UTC. Doubly important since several : of our servers operate in different timezones. : : Less easy is changing Solr's interpretation of NOW in DateMath to be UTC. : What is the correct way to go about

Re: Geographical distance searching

2007-10-19 Thread Ryan McKinley
patrick o'leary wrote: Actually misspoke it's the XMLWritter that's final that was a little annoying rather than a handler. Would have been nice to just extend that, and cut down on the code. aaah -- Just to be clear, if you could augment the doc list with a calculated field ('distance')

Re: Geographical distance searching

2007-10-19 Thread Chris Hostetter
: aaah -- Just to be clear, if you could augment the doc list with a calculated : field ('distance') you would not need to extend XMLWritter - correct? : : And then it would also work with the JSON/pyton/php etc writers. i don't think i ever looked at the patch in question (is it in Jira?) but

Re: Geographical distance searching

2007-10-19 Thread patrick o'leary
Actually misspoke it's the XMLWritter that's final that was a little annoying rather than a handler. Would have been nice to just extend that, and cut down on the code. P Ryan McKinley wrote: SOLR-281 looks like it will solve one of my frustrations, another being that the handlers were

Re: Geographical distance searching

2007-10-19 Thread Ryan McKinley
SOLR-281 looks like it will solve one of my frustrations, another being that the handlers were final ;-) What handlers are final that you found annoying? Is it close to being committed to the trunk? I hope so ;) Since this patch reworks the *core* query handlers (dismax/standard) I

Re: Solr, operating systems and globalization

2007-10-19 Thread Chris Hostetter
: Ah, that is good. So if: : : $ date : Thu Oct 18 12:07:42 PDT 2007 : : Then NOW in Solr will be the absolute date Thu Oct 18 04:07:42 2007 (which is : the current time in UTC)? first off: PDT is only 7 hours off UTC Second: i'm going to get a little bit pedandic... NOW is now .. it's an

Re: [jira] Commented: (SOLR-380) There's no way to convert search results into page-level hits of a structured document.

2007-10-19 Thread Erik Hatcher
On Oct 18, 2007, at 11:53 AM, Binkley, Peter wrote: I think the requirements I mentioned in a comment (https://issues.apache.org/jira/browse/SOLR-380#action_12535296) justify abandoning the one-page-per-document approach. The increment-gap approach would break the cross-page searching, and

Re: preconfiguring which xsl file to use

2007-10-19 Thread Robert Young
Thanks Eric. For the moment we're only using one requestHandler for basic querying so that should work OK Cheers Rob On 10/19/07, Erik Hatcher [EMAIL PROTECTED] wrote: On Oct 19, 2007, at 8:30 AM, Robert Young wrote: Is it possible to configure which xsl file to use for a particular

Re: GET_SCORES flag in SolrIndexSearcher

2007-10-19 Thread John Reuning
Ah ha, perfect. That worked brilliantly. In case anyone is interested, it turns out that defining id score as the field list for the standard request handler in solrconfig.xml does the same thing. requestHandler name=standard class=solr.StandardRequestHandler !-- default values for

Re: [jira] Commented: (SOLR-380) There's no way to convert search results into page-level hits of a structured document.

2007-10-19 Thread Tricia Williams
I echo the apology for using JIRA to work out ideas on this. Just thinking out loud here: * Is there any reason why the page id should be an integer? I mean could the page identifier be an alphanumeric string? * Ideally our project would like to store some page level meta-data

Re: Geographical distance searching

2007-10-19 Thread Ryan McKinley
This looks good! Are you interested in contributing it to solr core? One major thing in the solr pipeline you may want to be aware of is the search component interface (SOLR-281). This would let you make simple component that adds the: DistanceQuery dq = new

Best practice to get all highlighting terms for a document?

2007-10-19 Thread Thomas
Hi, One of the requirements of the application I'm currently working on is highlighting of matching terms not only in the search result page but also when the user clicks on a result and the whole page is displayed. In this particular app it is not possible to just query for the selected

Filtering by document unique key

2007-10-19 Thread Henrib
I'm trying to filter my document collection by an external mean that produces a set of document unique keys. Assuming this goes into a custom request handler (solr-281 making that easy), any pitfall using a ConstantScoreQuery (or an equivalent filtering functionality) as a Solr filter query ?

Re: GET_SCORES flag in SolrIndexSearcher

2007-10-19 Thread Henrib
I believe that keeping you code as is but initializing the query parameters should do the trick: HashMap params = new HashMap(); params.add(fl, id score); // field list is id score ... Regards John Reuning-2 wrote: My first pass was to implement the embedded solr example: --

Re: preconfiguring which xsl file to use

2007-10-19 Thread Erik Hatcher
On Oct 19, 2007, at 8:30 AM, Robert Young wrote: Is it possible to configure which xsl file to use for a particular queryResponseWriter in the solrconfig.xml? I don't believe so, but instead I think something like this will work: requestHandler name=opensearch

NPE on auto-warming and out of memory issues

2007-10-19 Thread briand
We are experiencing OOM issues with a SOLR index that has about 12G of indexed data with 2GB allocated to the JVM. We first see these type of messages in the log: Oct 18, 2007 10:25:00 AM org.apache.solr.core.SolrException log SEVERE: Error during auto-warming of key:+(search_place_type:citi

Re: Geographical distance searching

2007-10-19 Thread Doug Daniels
Hi Patrick, Was mainly interested in seeing how you did the RequestHandler. Thanks for sending the link! Best, Doug patrick o'leary wrote: Hi Doug What exactly are you looking for? The code for localsolr is still in dev state, but I've left my work open and available for download at

Re: GET_SCORES flag in SolrIndexSearcher

2007-10-19 Thread John Reuning
So, I found the following in QueryParsing::parseSort if( score.equals(part) ) { if (top) { // If thre is only one thing in the list, just do the regular thing... if( parts.length == 1 ) { return null; // do normal scoring... }

Re: FunctionQuery, DisMax and Highlighting

2007-10-19 Thread Alf Eaton
Mike Klaas wrote: On 18-Oct-07, at 8:47 AM, Alf Eaton wrote: I'm currently using the standard request handler for queries, because it provides highlighting (unlike DisMax). I'd also like to be able to use FunctionQuery to boost certain fields. From looking through the lists and JIRA it

Re: GET_SCORES flag in SolrIndexSearcher

2007-10-19 Thread John Reuning
My first pass was to implement the embedded solr example: -- MultiCore mc = MultiCore.getRegistry(); SolrCore core = mc.getCore(mIndexName); SolrRequestHandler handler = core.getRequestHandler(); HashMap params = new HashMap(); SolrQueryRequest request = new LocalSolrQueryRequest(core,

Re: allow some IP to access web UI

2007-10-19 Thread Gabriel Sosa
sorry.. I forgot said that I'm using jetty 2007/10/19, Gabriel Sosa [EMAIL PROTECTED]: hi all, I'm currently running the wen interface of solr in my devel stage, i want to know how can allow some IP to access in the solr administrator in my live stage and deny for all others ip.. make

Re: Search results problem

2007-10-19 Thread Maximilian Hütter
Yonik Seeley schrieb: On 10/17/07, Maximilian Hütter [EMAIL PROTECTED] wrote: I also found this: Controls the maximum number of terms that can be added to a Field for a given Document, thereby truncating the document. Increase this number if large documents are expected. However, setting

Re: Tagging in solr

2007-10-19 Thread Thorsten Scherler
On Fri, 2007-10-19 at 11:01 +0100, Spas Poptchev wrote: Hi, what i want to do is to store tags that belong to products. Each tag should also store information about how often it was used with a certain product. So for example: product1 cool 5= product1 was tagged 5 times with

Re: Solr + Tomcat Undeploy Leaks

2007-10-19 Thread Mike Klaas
On 19-Oct-07, at 7:19 AM, Ed Summers wrote: On 10/18/07, Mike Klaas [EMAIL PROTECTED] wrote: I realize this is a bit off-topic -- but I'm curious what the rationale was behind having that many solr instances on that many machines and how they are coordinated. Is it a master/slave setup or

allow some IP to access web UI

2007-10-19 Thread Gabriel Sosa
hi all, I'm currently running the wen interface of solr in my devel stage, i want to know how can allow some IP to access in the solr administrator in my live stage and deny for all others ip.. make sense? sorry for my english best regards gabriel -- Los sabios buscan la sabiduría; los

preconfiguring which xsl file to use

2007-10-19 Thread Robert Young
Hi, Is it possible to configure which xsl file to use for a particular queryResponseWriter in the solrconfig.xml? I would like to have something like the following so that I don't have put it in for every query. queryResponseWriter name=opensearch default=true