Sorry (Lack of java understanding) what exactly are we baking into flare :-) Like an flare admin tool? or??
Cheers --- Erik Hatcher <[EMAIL PROTECTED]> skrev: > ok folks, time to bake this kind of stuff into solr-ruby for one, and > also UI-wise into flare! > > who's with me?! :) > > Erik > > > Begin forwarded message: > > > From: [EMAIL PROTECTED] > > Date: April 27, 2007 1:56:08 AM EDT > > To: [EMAIL PROTECTED] > > Subject: svn commit: r532975 - in /lucene/solr/trunk: example/solr/ > > conf/ src/java/org/apache/solr/handler/ src/java/org/apache/solr/ > > handler/admin/ src/test/org/apache/solr/handler/admin/ > > Reply-To: [EMAIL PROTECTED] > > > > Author: ryan > > Date: Thu Apr 26 22:56:07 2007 > > New Revision: 532975 > > > > URL: http://svn.apache.org/viewvc?view=rev&rev=532975 > > Log: > > Adding 'Luke' request handler and other admin helpers: SOLR-163 > > > > Added: > > lucene/solr/trunk/src/java/org/apache/solr/handler/admin/ > > lucene/solr/trunk/src/java/org/apache/solr/handler/admin/ > > LukeRequestHandler.java (with props) > > lucene/solr/trunk/src/java/org/apache/solr/handler/admin/ > > PluginInfoHandler.java (with props) > > lucene/solr/trunk/src/java/org/apache/solr/handler/admin/ > > PropertiesRequestHandler.java (with props) > > lucene/solr/trunk/src/java/org/apache/solr/handler/admin/ > > SystemInfoHandler.java (with props) > > lucene/solr/trunk/src/java/org/apache/solr/handler/admin/ > > ThreadDumpHandler.java (with props) > > lucene/solr/trunk/src/test/org/apache/solr/handler/admin/ > > lucene/solr/trunk/src/test/org/apache/solr/handler/admin/ > > SystemInfoHandlerTest.java (with props) > > Modified: > > lucene/solr/trunk/example/solr/conf/solrconfig.xml > > lucene/solr/trunk/src/java/org/apache/solr/handler/ > > IndexInfoRequestHandler.java > > > > Modified: lucene/solr/trunk/example/solr/conf/solrconfig.xml > > URL: http://svn.apache.org/viewvc/lucene/solr/trunk/example/solr/ > > conf/solrconfig.xml?view=diff&rev=532975&r1=532974&r2=532975 > > ====================================================================== > > ======== > > --- lucene/solr/trunk/example/solr/conf/solrconfig.xml (original) > > +++ lucene/solr/trunk/example/solr/conf/solrconfig.xml Thu Apr 26 > > 22:56:07 2007 > > @@ -399,6 +399,13 @@ > > <requestHandler name="/update/csv" > > class="solr.CSVRequestHandler" startup="lazy"> > > </requestHandler> > > > > + <!-- Admin Handlers. TODO? There could be a single handler that > > loads them all... --> > > + <requestHandler name="/admin/luke" > > class="org.apache.solr.handler.admin.LukeRequestHandler" /> > > + <requestHandler name="/admin/system" > > class="org.apache.solr.handler.admin.SystemInfoHandler" /> > > + <requestHandler name="/admin/plugins" > > class="org.apache.solr.handler.admin.PluginInfoHandler" /> > > + <requestHandler name="/admin/threads" > > class="org.apache.solr.handler.admin.ThreadDumpHandler" /> > > + <requestHandler name="/admin/properties" > > class="org.apache.solr.handler.admin.PropertiesRequestHandler" /> > > + > > > > <!-- queryResponseWriter plugins... query responses will be > > written using the > > writer specified by the 'wt' request parameter matching the > > name of a registered > > > > Modified: lucene/solr/trunk/src/java/org/apache/solr/handler/ > > IndexInfoRequestHandler.java > > URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/ > > apache/solr/handler/IndexInfoRequestHandler.java? > > view=diff&rev=532975&r1=532974&r2=532975 > > ====================================================================== > > ======== > > --- lucene/solr/trunk/src/java/org/apache/solr/handler/ > > IndexInfoRequestHandler.java (original) > > +++ lucene/solr/trunk/src/java/org/apache/solr/handler/ > > IndexInfoRequestHandler.java Thu Apr 26 22:56:07 2007 > > @@ -32,6 +32,11 @@ > > import java.util.Map; > > import java.util.HashMap; > > > > +/** > > + * TODO? delete me? This is now a subset of LukeRequestHandler. > > + * Since it was not released in 1.1 should it be deleted before 1.2? > > + */ > > [EMAIL PROTECTED] > > public class IndexInfoRequestHandler extends RequestHandlerBase { > > > > public void handleRequestBody(SolrQueryRequest req, > > SolrQueryResponse rsp) { > > @@ -98,4 +103,5 @@ > > return "$URL: https://svn.apache.org/repos/asf/lucene/solr/ > > trunk/src/java/org/apache/solr/request/IndexInfoRequestHandler.java > > $"; > > } > > } > > + > > > > > > Added: lucene/solr/trunk/src/java/org/apache/solr/handler/admin/ > > LukeRequestHandler.java > > URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/ > > apache/solr/handler/admin/LukeRequestHandler.java?view=auto&rev=532975 > > ====================================================================== > > ======== > > --- lucene/solr/trunk/src/java/org/apache/solr/handler/admin/ > > LukeRequestHandler.java (added) > > +++ lucene/solr/trunk/src/java/org/apache/solr/handler/admin/ > > LukeRequestHandler.java Thu Apr 26 22:56:07 2007 > > @@ -0,0 +1,479 @@ > > +/** > > + * Licensed to the Apache Software Foundation (ASF) under one or more > > + * contributor license agreements. See the NOTICE file > > distributed with > > + * this work for additional information regarding copyright > > ownership. > > + * The ASF licenses this file to You under the Apache License, > > Version 2.0 > > + * (the "License"); you may not use this file except in compliance > > with > > + * the License. You may obtain a copy of the License at > > + * > > + * http://www.apache.org/licenses/LICENSE-2.0 > > + * > > + * Unless required by applicable law or agreed to in writing, > > software > > + * distributed under the License is distributed on an "AS IS" BASIS, > > + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or > > implied. > > + * See the License for the specific language governing permissions > > and > > + * limitations under the License. > > + */ > > + > > +package org.apache.solr.handler.admin; > > + > > +import java.io.IOException; > > +import java.net.MalformedURLException; > > +import java.net.URL; > > +import java.util.Collection; > > +import java.util.Date; > > +import java.util.HashMap; > > +import java.util.HashSet; > > +import java.util.LinkedList; > > +import java.util.List; > > +import java.util.Map; > > +import java.util.Set; > > +import java.util.logging.Level; > > +import java.util.logging.Logger; > > + > > +import org.apache.lucene.document.Document; > > +import org.apache.lucene.document.Fieldable; > > +import org.apache.lucene.index.IndexReader; > > +import org.apache.lucene.index.Term; > > +import org.apache.lucene.index.TermEnum; > > +import org.apache.lucene.index.TermFreqVector; > > +import org.apache.lucene.search.MatchAllDocsQuery; > > +import org.apache.lucene.search.Query; > > +import org.apache.lucene.store.Directory; > > +import org.apache.lucene.util.PriorityQueue; > > +import org.apache.solr.core.SolrConfig; > > +import org.apache.solr.core.SolrException; > > +import org.apache.solr.handler.RequestHandlerBase; > > +import org.apache.solr.handler.RequestHandlerUtils; > > +import org.apache.solr.request.SolrParams; > > +import org.apache.solr.request.SolrQueryRequest; > > +import org.apache.solr.request.SolrQueryResponse; > > +import org.apache.solr.schema.FieldType; > > +import org.apache.solr.schema.IndexSchema; > > +import org.apache.solr.schema.SchemaField; > > +import org.apache.solr.search.SolrIndexSearcher; > > +import org.apache.solr.search.SolrQueryParser; > > +import org.apache.solr.util.NamedList; > > +import org.apache.solr.util.SimpleOrderedMap; > > + > > +/** > > + * This handler exposes the internal lucene index. It is inspired > > by and > > + * modeled on Luke, the Lucene Index Browser by Andrzej Bialecki. > > + * http://www.getopt.org/luke/ > > + * <p> > > + * NOTE: the response format is still likely to change. It should > > be designed so > > + * that it works nicely with an XSLT transformation. Untill we > > have a nice > > + * XSLT frontend for /admin, the format is still open to change. > > + * </p> > > + * > > + * For more documentation see: > === message truncated === __________________________________________________________ Hitta din nästa resa på Yahoo! Shopping. Jämför pris på flygbiljetter och hotellrum här: http://shopping.yahoo.se/b/a/c_169901_resor_biljetter.html
