field range (min and max term)

2009-02-02 Thread Ben Incani
Hi Solr users,

Is there a method of retrieving a field range i.e. the min and max
values of that fields term enum.

For example I would like to know the first and last date entry of N
documents.

Regards,

-Ben


solr web admin

2007-12-19 Thread Ben Incani
why does the web admin append core=null to all the requests?

e.g. admin/get-file.jsp?core=nullfile=schema.xml


retrieve lucene doc id

2007-12-16 Thread Ben Incani
how do I retrieve the lucene doc id in a query?

-Ben


RE: lowercase text/strings to be used in list box

2007-10-21 Thread Ben Incani
sorry - this should have been posted on the Lucene user list.

...the solution is to use the lucene PerFieldAnalyzerWrapper and add the
field with the KeywordAnalyzer then pass the PerFieldAnalyzerWrapper to
the QueryParser.

-Ben

 -Original Message-
 From: Ben Incani [mailto:[EMAIL PROTECTED] 
 Sent: Friday, 19 October 2007 5:52 PM
 To: solr-user@lucene.apache.org
 Subject: lowercase text/strings to be used in list box
 
 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 class=solr.KeywordTokenizerFactory/
 filter class=solr.LowerCaseFilterFactory/
   /analyzer
 /fieldtype
 
 I also tried;
 
 fieldtype name=string_lc class=solr.StrField
   analyzer
 tokenizer class=solr.LowerCaseTokenizerFactory/
 filter class=solr.LowerCaseFilterFactory/
   /analyzer
 /fieldtype
 
 
 This allows me to browse all the values no problem, but when 
 it comes to search the documents I have to use the lucene 
 org.apache.lucene.analysis.KeywordAnalyzer, when I would 
 rather use the 
 org.apache.lucene.analysis.standard.StandardAnalyzer and the 
 power of the default query parser to perform a phrase query 
 such as my_field:(the
 value) or my_field:the value, which don't work?
 
 So is there a way to prevent tokenisation of a field using 
 the StandardAnalyzer, without implementing your own TokenizerFactory?
 
 Regards
 
 Ben
 


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 class=solr.KeywordTokenizerFactory/
filter class=solr.LowerCaseFilterFactory/
  /analyzer
/fieldtype

I also tried;

fieldtype name=string_lc class=solr.StrField
  analyzer
tokenizer class=solr.LowerCaseTokenizerFactory/
filter class=solr.LowerCaseFilterFactory/
  /analyzer
/fieldtype


This allows me to browse all the values no problem, but when it comes to
search the documents I have to use the lucene
org.apache.lucene.analysis.KeywordAnalyzer, when I would rather use the
org.apache.lucene.analysis.standard.StandardAnalyzer and the power of
the default query parser to perform a phrase query such as my_field:(the
value) or my_field:the value, which don't work?

So is there a way to prevent tokenisation of a field using the
StandardAnalyzer, without implementing your own TokenizerFactory?

Regards

Ben


separate log files

2007-01-15 Thread Ben Incani
Hi Solr users,

I'm running multiple instances of Solr, which all using the same war
file to load from.

Below is an example of the servlet context file used for each
application.

Context path=/app1-solr docBase=/var/usr/solr/solr-1.0.war
debug=0 crossContext=true 
Environment name=solr/home type=java.lang.String
value=/var/local/app1 override=true /
/Context

Hence each application is using the same
WEB-INF/classes/logging.properties file to configure logging.

I would like to each instance to log to separate log files such as;
app1-solr.-mm-dd.log
app2-solr.-mm-dd.log
...

Is there an easy way to append the context path to
org.apache.juli.FileHandler.prefix
E.g. 
org.apache.juli.FileHandler.prefix = ${catalina.context}-solr.
 
Or would this require a code change?

Regards

-Ben