Ant build question

2007-04-18 Thread Andrew Nagy
Hello, I would like to play with patch SOLR-69 and am trying to rebuild 
solr using ant with some difficulties.  When I try to run ant, I get an 
error saying that it can't find junit, but junit is in the ant lib 
directory.  I had a file called ant-junit.jar in the lib directory and 
copied it to junit.jar, but it still gave me the error.  Any ideas as to 
what is causing this?


Thanks
Andrew

# ant example
Buildfile: build.xml

checkJunitPresence:

BUILD FAILED
/office/src/apache-solr-nightly/build.xml:240: 
##

 JUnit not found.
 Please make sure junit.jar is in ANT_HOME/lib, or made available
 to Ant using other mechanisms like -lib or CLASSPATH.
 ##

Total time: 0 seconds

# echo $ANT_HOME
/usr/local/ant

# ls /usr/local/ant/lib/
ant-antlr.jar ant-apache-oro.jar   ant-commons-net.jar  
ant-javamail.jar  ant-junit.jar ant-starteam.jar   ant-vaj.jar   
junit.jar
ant-apache-bcel.jar   ant-apache-regexp.jarant-icontract.jar
ant-jdepend.jar   ant-launcher.jar  ant-stylebook.jar  ant-weblogic.jar  
README
ant-apache-bsf.jarant-apache-resolver.jar  ant-jai.jar  
ant-jmf.jar   ant-netrexx.jar   ant-swing.jar  ant-xalan1.jar
xercesImpl.jar
ant-apache-log4j.jar  ant-commons-logging.jar  ant.jar  
ant-jsch.jar  ant-nodeps.jarant-trax.jar   ant-xslp.jar  
xml-apis.jar




limiting the rows returned for a query

2007-04-18 Thread mike topper

Hello,

I have a question that I couldn't really find the answer to and dont 
really know if its possible currently within solr.


I want to do a simple query to the solr index.  something like 
q=stateid:1 countryid:1


but i'm really only concerned with getting the record above and below a 
certain (dynamic) recordid in the search results.


Is there a way to do this through a query or is my only option to return 
all the search results and parse them to find the record id I want, and 
then get the one above and below that.  I'd also have to take into 
account pagination and whatnot which makes it also a little bit harder 
to do this way.


anyways hope that makes sense,

let me know!


-Mike


Re: Ant build question

2007-04-18 Thread Erik Hatcher


On Apr 18, 2007, at 10:39 AM, Andrew Nagy wrote:
Hello, I would like to play with patch SOLR-69 and am trying to  
rebuild solr using ant with some difficulties.  When I try to run  
ant, I get an error saying that it can't find junit, but junit is  
in the ant lib directory.  I had a file called ant-junit.jar in the  
lib directory and copied it to junit.jar, but it still gave me the  
error.  Any ideas as to what is causing this?


ant-junit.jar != junit.jar

rename it back, and grab junit.jar from junit.org

Erik



Re: Ant build question

2007-04-18 Thread Erik Hatcher
to clarify this a bit... ant-junit.jar is the  task in Ant,  
but JUnit's library itself (i.e. TestCase, etc) is not there, only in  
junit.jar from junit.org.


Erik


On Apr 18, 2007, at 1:49 PM, Erik Hatcher wrote:



On Apr 18, 2007, at 10:39 AM, Andrew Nagy wrote:
Hello, I would like to play with patch SOLR-69 and am trying to  
rebuild solr using ant with some difficulties.  When I try to run  
ant, I get an error saying that it can't find junit, but junit is  
in the ant lib directory.  I had a file called ant-junit.jar in  
the lib directory and copied it to junit.jar, but it still gave me  
the error.  Any ideas as to what is causing this?


ant-junit.jar != junit.jar

rename it back, and grab junit.jar from junit.org

Erik




Re: Ant build question

2007-04-18 Thread Andrew Nagy

Erik Hatcher wrote:

ant-junit.jar != junit.jar

rename it back, and grab junit.jar from junit.org

Easy enough.

Thanks!
Andrew


RE: strange results from lucene

2007-04-18 Thread Bill Tantzen
Thanks to all that responded!  This did the trick.  I used
admin/analysis.jsp to determine how solr indexed my data and how solr parses
my query.  I used a QueryParser and applied the same filters to my query,
and now my results match exactly.

Thanks again!

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
> Behalf Of Bertrand Delacretaz
> Sent: Tuesday, April 17, 2007 3:00 PM
> To: solr-user@lucene.apache.org
> Subject: Re: strange results from lucene
> 
> On 4/17/07, Bill Tantzen <[EMAIL PROTECTED]> wrote:
> 
> > ...However, when I search with 'q=ethics' in solr, I get 
> almost 10,000 matches.
> > With my client, I get 0
> 
> What kind of analyzer do you use when indexing that field? If 
> you have a stemmer, for example, "ethics" might be indexed 
> without the ending "s".
> 
> The best way to debug such problems is with the analyzer admin tool:
> http://localhost:8983/solr/admin/analysis.jsp - that page 
> will show you how your field is processed while indexing.
> 
> HTH,
> -Bertrand
> 



Error when try to find_by_solr

2007-04-18 Thread solruser

Hi everyone,

Below is the error the I received when I tried to query the solr using
find_by_solr. below bold shows where I output the response header from the
solr server

>> Post.find_by_solr("amit")
query "(amit) AND type_t:Post"
response
"{'responseHeader'=>{'status'=>0,'QTime'=>0,'params'=>{'fl'=>'pk_i','q'=>'(amit)
AND
type_t:Post','wt'=>'ruby'}},'response'=>{'numFound'=>1,'start'=>0,'docs'=>[{'pk_i'=>ae5a8W7DOr25GRabmcoL7T}]}}"
./script/../config/../config/../vendor/plugins/acts_as_solr/lib/class_methods.rb:181:in
`process_query'
(eval):1:in `process_query'
./script/../config/../config/../vendor/plugins/acts_as_solr/lib/class_methods.rb:38:in
`eval'
./script/../config/../config/../vendor/plugins/acts_as_solr/lib/class_methods.rb:181:in
`process_query'
./script/../config/../config/../vendor/plugins/acts_as_solr/lib/class_methods.rb:38:in
`find_by_solr'
(irb):6:in `irb_binding'
c:/ruby/lib/ruby/1.8/irb/workspace.rb:52:in `irb_binding'
c:/ruby/lib/ruby/1.8/irb/workspace.rb:52
RuntimeError: There was a problem executing your search: undefined local
variable or method `ae5a8W7DOr25GRabmcoL7T' for Post:Class
from
./script/../config/../config/../vendor/plugins/acts_as_solr/lib/class_methods.rb:186:in
`process_query'
from
./script/../config/../config/../vendor/plugins/acts_as_solr/lib/class_methods.rb:38:in
`find_by_solr'
from (irb):6On Apr 12, 5:00 pm, "amit" <[EMAIL PROTECTED]> wrote:

Can someone help me why is this an issue.


TIA
amit
-- 
View this message in context: 
http://www.nabble.com/Error-when-try-to-find_by_solr-tf3602498.html#a10063747
Sent from the Solr - User mailing list archive at Nabble.com.



Re: Error when try to find_by_solr

2007-04-18 Thread Yonik Seeley

On 4/18/07, solruser <[EMAIL PROTECTED]> wrote:

Below is the error the I received when I tried to query the solr using
find_by_solr. below bold shows where I output the response header from the
solr server

>> Post.find_by_solr("amit")
query "(amit) AND type_t:Post"
response
"{'responseHeader'=>{'status'=>0,'QTime'=>0,'params'=>{'fl'=>'pk_i','q'=>'(amit)
AND
type_t:Post','wt'=>'ruby'}},'response'=>{'numFound'=>1,'start'=>0,'docs'=>[{'pk_i'=>ae5a8W7DOr25GRabmcoL7T}]}}"


It possibly looks like you might have hit a bug in the ruby response writer?
What is the fieldType of field pk_i?  Could you post the field
definition of *_i and it's corresponding fieldType?

You could also verify the problem with the following direct query (and
look for a correct value of pk_i):
http://localhost:8983/solr/select?q=(amit) AND
type_t:Post&wt=ruby&fl=pk_i&indent=on

-Yonik


Requests per second/minute monitor?

2007-04-18 Thread Walter Underwood
Is there a good spot to track request rate in Solr? Has anyone
built a monitor?

wunder
--
Search Guru
Netflix



Facet Browsing

2007-04-18 Thread Jennifer Seaman
Does anyone have any sample code (php, perl, etc) how to setup facet 
browsing with paging? I can't seem to get things like facet.mincount 
to work. Thank you.


Jennifer Seaman
  



Re: Error when try to find_by_solr

2007-04-18 Thread solruser

Hi Yonik,

I verified the url that mentioned in the mail and I got the right result on
the uri.

The field type for the primary key field is string. And below is the
definition for *_i in the schema.xml file


   
   
   
   
   
   
   
   
   
   
   
 

-Amit


Yonik Seeley wrote:
> 
> On 4/18/07, solruser <[EMAIL PROTECTED]> wrote:
>> Below is the error the I received when I tried to query the solr using
>> find_by_solr. below bold shows where I output the response header from
>> the
>> solr server
>>
>> >> Post.find_by_solr("amit")
>> query "(amit) AND type_t:Post"
>> response
>> "{'responseHeader'=>{'status'=>0,'QTime'=>0,'params'=>{'fl'=>'pk_i','q'=>'(amit)
>> AND
>> type_t:Post','wt'=>'ruby'}},'response'=>{'numFound'=>1,'start'=>0,'docs'=>[{'pk_i'=>ae5a8W7DOr25GRabmcoL7T}]}}"
> 
> It possibly looks like you might have hit a bug in the ruby response
> writer?
> What is the fieldType of field pk_i?  Could you post the field
> definition of *_i and it's corresponding fieldType?
> 
> You could also verify the problem with the following direct query (and
> look for a correct value of pk_i):
> http://localhost:8983/solr/select?q=(amit) AND
> type_t:Post&wt=ruby&fl=pk_i&indent=on
> 
> -Yonik
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Error-when-try-to-find_by_solr-tf3602498.html#a10066458
Sent from the Solr - User mailing list archive at Nabble.com.



Re: Requests per second/minute monitor?

2007-04-18 Thread Jeff Rodenburg

Not yet from us, but I'm thinking about a nagios plugin for Solr.  It would
be tomcat-based for the http stuff, however.

On 4/18/07, Walter Underwood <[EMAIL PROTECTED]> wrote:


Is there a good spot to track request rate in Solr? Has anyone
built a monitor?

wunder
--
Search Guru
Netflix




Re: Requests per second/minute monitor?

2007-04-18 Thread Walter Underwood
I noticed that admin/stats.jsp gives the total requests since
startup. If the monitor keeps the previous value, it can calculate
the rate at the client.

wunder

On 4/18/07 2:03 PM, "Jeff Rodenburg" <[EMAIL PROTECTED]> wrote:

> Not yet from us, but I'm thinking about a nagios plugin for Solr.  It would
> be tomcat-based for the http stuff, however.
> 
> On 4/18/07, Walter Underwood <[EMAIL PROTECTED]> wrote:
>> 
>> Is there a good spot to track request rate in Solr? Has anyone
>> built a monitor?
>> 
>> wunder
>> --
>> Search Guru
>> Netflix



Re: Error when try to find_by_solr

2007-04-18 Thread Yonik Seeley

On 4/18/07, solruser <[EMAIL PROTECTED]> wrote:



   


The root of the problem is that your "integer" field did not have an
integer in it.
Did you change the type of the schema after you indexed the data?  If
so, start over.
The other possibility is that when you added the data, you put in a
non integer value for pk_i.

-Yonik


Re: Requests per second/minute monitor?

2007-04-18 Thread Yonik Seeley

On 4/18/07, Walter Underwood <[EMAIL PROTECTED]> wrote:

I noticed that admin/stats.jsp gives the total requests since
startup. If the monitor keeps the previous value, it can calculate
the rate at the client.


Something based off of access logs is more universal since it works
across many different types of applications.

-Yonik


Re: Facet Browsing

2007-04-18 Thread Koji Sekiguchi

Hi Jennifer,

> I can't seem to get things like facet.mincount to work.

We had same issue when we used Solr incubator version.
Now we are using trunk version of Solr and the issue was gone.

Hope this helps,

Koji




Re: Facet Browsing

2007-04-18 Thread Yonik Seeley

On 4/18/07, Koji Sekiguchi <[EMAIL PROTECTED]> wrote:

 > I can't seem to get things like facet.mincount to work.

We had same issue when we used Solr incubator version.
Now we are using trunk version of Solr and the issue was gone.


Hmmm, good point.
The wiki is often updated at the same time as the most recent
development version of Solr.

-Yonik


resin faile to start with solr.

2007-04-18 Thread James liu

It work well when i use tomcat with solr

now i wanna test resin,,,i use resin-3.1.0

now it show me

[03:47:34.047] WebApp[http://localhost:8080] starting
[03:47:34.691] WebApp[http://localhost:8080/resin-doc] starting
[03:47:34.927] WebApp[http://localhost:8080/solr1] starting
[03:47:35.051] SolrServlet.init()
[03:47:35.077] Solr home set to '/usr/solrapp/solr1/'
[03:47:35.077] user.dir=/tmp/resin-3.1.0/bin
[03:47:35.231] Loaded SolrConfig: solrconfig.xml
[03:47:35.522] adding requestHandler standard=solr.StandardRequestHandler
[03:47:35.621] adding requestHandler dismax=solr.DisMaxRequestHandler
[03:47:35.692] adding requestHandler partitioned=solr.DisMaxRequestHandler
[03:47:35.721] adding requestHandler instock=solr.DisMaxRequestHandler
[03:47:35.819] Opening new SolrCore at /usr/solrapp/solr1/,
dataDir=/usr/solrapp/solr1/data
[03:47:35.884] Reading Solr Schema
[03:47:35.916] Schema name=example
[03:47:35.929] org.apache.solr.core.SolrException: Schema Parsing Failed
[03:47:35.929]  at org.apache.solr.schema.IndexSchema.readConfig(
IndexSchema.java:441)
[03:47:35.929]  at org.apache.solr.schema.IndexSchema.(
IndexSchema.java:69)
[03:47:35.929]  at org.apache.solr.core.SolrCore.(SolrCore.java:191)



--
regards
jl


help need on words with special characters

2007-04-18 Thread Doss
Hi,

I am new to solr(and 0 in lucene), my doubt is how can i protect  words with 
special characters from tokenizing, sat for example A+, A1+ etc. because when i 
searched for "group A" i am getting results with A+ aswell as A1+ and so on, is 
there any special way to index these type of words? 

Thanks,
Doss.

Leading wildcards

2007-04-18 Thread Maarten . De . Vilder
hi,

we have been trying to get the leading wildcards to work.

we have been looking around the Solr website, the Lucene website, wiki's 
and the mailing lists etc ...
but we found a lot of contradictory information.

so we have a few question : 
- is the latest version of lucene capable of handling leading wildcards ? 
- is the latest version of solr capable of handling leading wildcards ?
- do we need to make adjustments to the solr source code ?
- if we need to adjust the solr source, what do we need to change ?

thanks in advance !
Maarten