Re: [sqljdbc4.jar] Errors

2011-01-05 Thread Gora Mohanty
On Wed, Jan 5, 2011 at 10:18 AM, Estrada Groups
estrada.adam.gro...@gmail.com wrote:
 I downloaded that driver today and will test it tomorrow. Thanks for the tip! 
 Would you mind sending an XML code snippet if it's any different to load than 
 the MS driver?
[...]

I presume that you are referring to the jTDS driver. The options are slightly
different. Here is a snippet from the XML configuration of our
DataImportHandler,
with sensitive details obscured.
dataSource type=JdbcDataSource name=jdbc
driver=net.sourceforge.jtds.jdbc.Driver
url=jdbc:jtds:sqlserver://db_server:port;databasename=dbname;responseBuffering=adaptive
user=user password=password onError=skip /

The jtds FAQ ( http://jtds.sourceforge.net/faq.html ) also has other
configuration
options, and more helpful information. For us, the transition was
pretty painless.

Regards,
Gora


Re: Sub query using SOLR?

2011-01-05 Thread Grijesh.singh

Why thinking so complex,just use result of first query as filter for your
second query
like
fq=related_id:(id1 OR id2 OR id3 )q=q=”type:IT AND manager_12:dave”

somthing like that

-
Grijesh
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/Sub-query-using-SOLR-tp2193251p2197490.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Error when running simple queries to solr

2011-01-05 Thread Grijesh.singh

/opt/solr i.e. solr/home only requires conf,data,lib directories.
why you have putted other directories under solr/home location.

The [solr/home]/data directory must required the Write permission ,Please
check and provide appropriate permissions to directories because solr will
try to write in data directory.

-
Grijesh
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/Error-when-running-simple-queries-to-solr-tp2196060p2197539.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Embedding SOLR in Dot NET Application

2011-01-05 Thread Grijesh.singh

Solr is not a library like Lucene. Solr works like Webservice application
over http.
It works over http so you can easly integrate it in any application.

it takes input as http parameters and returns response in different forms
like xml, json, php, csv etc.So you can use any response type for your
application.You have to parse response and use into your application

-
Grijesh
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/Embedding-SOLR-in-Dot-NET-Application-tp2197589p2197653.html
Sent from the Solr - User mailing list archive at Nabble.com.


WARNING: re-index all Lucene trunk indices

2011-01-05 Thread Michael McCandless
If you are using Lucene's trunk (to be 4.0) builds, read on...

I just committed LUCENE-2843, which is a hard break on the index file format.

If you are living on Lucene's trunk then you have to remove any
previously created indices and re-index, after updating.

The change cuts over to a more RAM efficient and faster terms index
implementation, using FSTs (finite state transducers) to hold the term
index data.

Mike


Re: WARNING: re-index all Lucene trunk indices

2011-01-05 Thread Bernd Fehling
Because this is also posted for solr-user and from some earlier
experiences with solr from trunk I think this is also recommended
for solr users living from trunk, right?

So solr trunk builds directly with lucene trunk?

Bernd


Am 05.01.2011 11:55, schrieb Michael McCandless:
 If you are using Lucene's trunk (to be 4.0) builds, read on...
 
 I just committed LUCENE-2843, which is a hard break on the index file format.
 
 If you are living on Lucene's trunk then you have to remove any
 previously created indices and re-index, after updating.
 
 The change cuts over to a more RAM efficient and faster terms index
 implementation, using FSTs (finite state transducers) to hold the term
 index data.
 
 Mike


Re: Sub query using SOLR?

2011-01-05 Thread Geert-Jan Brits
Bbarani probably wanted to be able to create the query without having to
prefetch the ids at the clientside first.
But I agree this is the only stable solution I can think of (so excluding
possible patches)

Geert-Jan

2011/1/5 Grijesh.singh pintu.grij...@gmail.com


 Why thinking so complex,just use result of first query as filter for your
 second query
 like
 fq=related_id:(id1 OR id2 OR id3 )q=q=”type:IT AND
 manager_12:dave”

 somthing like that

 -
 Grijesh
 --
 View this message in context:
 http://lucene.472066.n3.nabble.com/Sub-query-using-SOLR-tp2193251p2197490.html
 Sent from the Solr - User mailing list archive at Nabble.com.



Re: WARNING: re-index all Lucene trunk indices

2011-01-05 Thread Michael McCandless
On Wed, Jan 5, 2011 at 6:05 AM, Bernd Fehling
bernd.fehl...@uni-bielefeld.de wrote:
 Because this is also posted for solr-user and from some earlier
 experiences with solr from trunk I think this is also recommended
 for solr users living from trunk, right?

 So solr trunk builds directly with lucene trunk?

Correct.

Mike


Re: Replication: the web application [/solr] .. likely to create a memory leak

2011-01-05 Thread Markus Jelsma
I have no Windows.

On Tuesday 04 January 2011 23:20:00 Lance Norskog wrote:
 Is this on Windows or Unix? Windows will not delete a file that is still
 open.
 
 On Tue, Jan 4, 2011 at 10:07 AM, Markus Jelsma
 
 markus.jel...@openindex.io wrote:
  Is it possible this problem has something to do with my old index files
  not being removed? This problem only surfaces in my setup when i restart
  with replication on the slave. I can confirm that for some reason my
  replicated indexes get messed up only when i start restarting Tomcat
  several times.
  
  On Tuesday 04 January 2011 15:48:31 Yonik Seeley wrote:
  On Tue, Jan 4, 2011 at 9:34 AM, Robert Muir rcm...@gmail.com wrote:
  [junit] WARNING: test class left thread running:
   Thread[MultiThreadedHttpConnectionManager cleanup,5,main]
  
  I suppose we should move MultiThreadedHttpConnectionManager to
  CoreContainer.
  
  -Yonik
  http://www.lucidimagination.com
  
  --
  Markus Jelsma - CTO - Openindex
  http://www.linkedin.com/in/markus17
  050-8536620 / 06-50258350

-- 
Markus Jelsma - CTO - Openindex
http://www.linkedin.com/in/markus17
050-8536620 / 06-50258350


Re: Embedding SOLR in Dot NET Application

2011-01-05 Thread Mauricio Scheffer
See:
http://stackoverflow.com/questions/1749314/is-solr-available-for-net
http://stackoverflow.com/questions/1749314/is-solr-available-for-net
http://stackoverflow.com/questions/3992530/is-any-work-being-done-on-a-net-port-of-solr

--
Mauricio



On Wed, Jan 5, 2011 at 6:59 AM, sumita giantmail.sum...@gmail.com wrote:


 Hi,

 I wanted some information about whether it is possible to embed SOLR in a
 DOT NET application, something like SOLRJ for Java.  I have searched the
 net
 and found out that both SOLRSHARP and SOLRNET provide apis to query a
 running SOLR server(ehich in turn requires a JVM to run).

 However, our requirements is a bit different in the sense that we are
 looking for a dot net version of the SOLR libraries(dll etc), so that we
 can
 embed it in our application.  Currently, we are using Lucene API in our
 application for creating a search engine, but want to shift to SOLR to
 implement its inbuilt faceting feature.

 Any pointers in this regards would be really helpful.

 regards,
 Sumita
 --
 View this message in context:
 http://lucene.472066.n3.nabble.com/Embedding-SOLR-in-Dot-NET-Application-tp2197589p2197589.html
 Sent from the Solr - User mailing list archive at Nabble.com.



Re: [sqljdbc4.jar] Errors

2011-01-05 Thread Adam Estrada
I can't tell any difference in performance but it does work like a charm. At
least the messaging in the console is a lot more verbose.

Thank you very much for the heads up on this one ;-)

Adam

On Wed, Jan 5, 2011 at 4:29 AM, Gora Mohanty g...@mimirtech.com wrote:

 On Wed, Jan 5, 2011 at 10:18 AM, Estrada Groups
 estrada.adam.gro...@gmail.com wrote:
  I downloaded that driver today and will test it tomorrow. Thanks for the
 tip! Would you mind sending an XML code snippet if it's any different to
 load than the MS driver?
 [...]

 I presume that you are referring to the jTDS driver. The options are
 slightly
 different. Here is a snippet from the XML configuration of our
 DataImportHandler,
 with sensitive details obscured.
 dataSource type=JdbcDataSource name=jdbc
 driver=net.sourceforge.jtds.jdbc.Driver

 url=jdbc:jtds:sqlserver://db_server:port;databasename=dbname;responseBuffering=adaptive
 user=user password=password onError=skip /

 The jtds FAQ ( http://jtds.sourceforge.net/faq.html ) also has other
 configuration
 options, and more helpful information. For us, the transition was
 pretty painless.

 Regards,
 Gora



Searching similar values for same field results in different results

2011-01-05 Thread PeterKerk

Something weird is happening.

I have locations that can have 1 or more themes.
A theme can be: Kasteel en Landgoed, or a theme can be Strand en Zee

I checked in the database, there are many locations that have 1 or more of
these themes assigned to it.

Also in the response xml when I do a general search I get:
lst name=facet_counts
lst name=facet_queries/
lst name=facet_fields
lst name=themes_raw
int name=Hotel en Restaurant366/int
int name=Kasteel en Landgoed153/int- 153 found
int name=Strand en Zee16/int  - 16 found
/lst


When I request this:
http://localhost:8983/solr/db/select/?indent=onfacet=truefq=themes:%22Strand%20en%20Zee%22q=*:*fl=id,title
I get 16 results. Which is expected.

When I request this:
http://localhost:8983/solr/db/select/?indent=onfacet=truefq=themes:%22Kasteel%20en%20Landgoed%22q=*:*fl=id,title
I get 0 results!!!

why?!?


definition in schema.xml:


field name=themes type=text indexed=true stored=true
multiValued=true  /
field name=themes_raw type=string indexed=true stored=true
multiValued=true/

copyField source=themes dest=themes_raw/

Why are these results differing?
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/Searching-similar-values-for-same-field-results-in-different-results-tp2199269p2199269.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Searching similar values for same field results in different results

2011-01-05 Thread Ahmet Arslan
 Something weird is happening.
 
 I have locations that can have 1 or more themes.
 A theme can be: Kasteel en Landgoed, or a theme can be
 Strand en Zee
 
 I checked in the database, there are many locations that
 have 1 or more of
 these themes assigned to it.
 
 Also in the response xml when I do a general search I get:
 lst name=facet_counts
 lst name=facet_queries/
 lst name=facet_fields
 lst name=themes_raw
     int name=Hotel en
 Restaurant366/int
     int name=Kasteel en
 Landgoed153/int    - 153
 found
     int name=Strand en
 Zee16/int    - 16 found
 /lst
 
 
 When I request this:
 http://localhost:8983/solr/db/select/?indent=onfacet=truefq=themes:%22Strand%20en%20Zee%22q=*:*fl=id,title
 I get 16 results. Which is expected.
 
 When I request this:
 http://localhost:8983/solr/db/select/?indent=onfacet=truefq=themes:%22Kasteel%20en%20Landgoed%22q=*:*fl=id,title
 I get 0 results!!!
 
 why?!?

May be you deleted those documents? Deleted terms can appear in facet section 
until you optimize. Can you run these queries after an optimize operation?
What is the output of this after an optimize :
facet=onq=*:*facet.field=themes_raw

Also using browser to query/test solr sometimes gives old results due to http 
caching.





Re: How to integrate Solr with C/CPP client

2011-01-05 Thread Juan Manuel Alvarez
I use the POCO C++ library (http://pocoproject.org/) to send
HTML requests to Solr and to parse the XML response.

Cheers!
Juan M.

On Wed, Jan 5, 2011 at 1:28 AM, Gora Mohanty g...@mimirtech.com wrote:
 On Wed, Jan 5, 2011 at 9:54 AM, prasad deshpande
 prasad.deshpand...@gmail.com wrote:
 It seems Solr/Lucene is completely developed in Java.
 I want to integrate Solr with C/CPP client. Is it possible? If yes, how?
 []

 Lucene has a C port called Lucy ( http://incubator.apache.org/lucy/ )

 Solr can be accessed as a web service, so it is possible to use a
 C/C++ client.

 Regards,
 Gora



Re: Searching similar values for same field results in different results

2011-01-05 Thread PeterKerk

uhm...how do I perform an optimize operation? :)
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/Searching-similar-values-for-same-field-results-in-different-results-tp2199269p2199795.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Searching similar values for same field results in different results

2011-01-05 Thread Ahmet Arslan

 
 uhm...how do I perform an optimize operation? :)


http://localhost:8983/solr/db/update/?optimize=true


  


Re: [sqljdbc4.jar] Errors

2011-01-05 Thread Gora Mohanty
On Wed, Jan 5, 2011 at 8:22 PM, Adam Estrada estrada.a...@gmail.com wrote:
 I can't tell any difference in performance but it does work like a charm. At
 least the messaging in the console is a lot more verbose.
[...]

Well, as far as the performance goes, we were also simultaneously
making other changes as we were switching drivers, so we did not
make an objective measurement of improved performance in terms
of requests/s.

What we definitely noticed was a marked improvement in maintaining
connections to the database. At that time, our data import handler used
to take some 6-7 hours, and we had all kinds of problems with dropped
connections while using the Microsoft JDBC driver. Things improved a
lot with jtds. Even though the problems did not entirely go away, they
were minimised enough that the glitches could equally well be attributed
to network issues, or issues with the database server.

Regards,
Gora


RE: DataImportHanlder - Multiple entities will step into each other

2011-01-05 Thread Ephraim Ofir
You could get around that by doing the concatenation at the SQL level, that way 
deletes would work as well.

Ephraim Ofir

-Original Message-
From: Matti Oinas [mailto:matti.oi...@gmail.com] 
Sent: Tuesday, January 04, 2011 3:57 PM
To: solr-user@lucene.apache.org
Subject: Re: DataImportHanlder - Multiple entities will step into each other

I managed to do that by using TemplateTransformer

document
  entity name=company. transformer=TemplateTransformer
 field column=id name=id template=company-${company.id} /
...
  entity name=item. transformer=TemplateTransformer
 field column=id name=id template=item-${item.id} /
...
/document

Only problem is that delta import fails to perform delete to the
index. It seems that TemplateTransformer is not used when performing
delete so delete by id doesn't work.



2011/1/4 yu shen shenyu...@gmail.com:
 Hi All,

 I have a dataimporthandler config file as below. It contains multiple
 entities:
 dataConfig
        dataSource name=jdbc driver=com.mysql.jdbc.Driver

 url=jdbc:mysql://localhost:1521/changan?useUnicode=trueamp;characterEncoding=utf8amp;autoReconnect=true...
 /
        document
                entity name=item dataSource=jdbc pk=id query=...
                entity name=company dataSource=jdbc pk=id query=
                
        /document
 /dataConfig

 All data are from a database. Problem is item/company and other entity all
 have the field 'id', with value start from 1 to n. In this case,
 item/company etc. will step into each other.
 Is there a way to prevent is from happening. Such as designate different
 entity to different partition.

 One way I can think of is to seperate different entity to different
 instance, which is not ideal solution IMO.

 Would some one point me to a reference? And also give some instructions?



(FQ) Filter Query Caching Differences with OR and AND?

2011-01-05 Thread Em

Hi,

while reading through some information on the list and in the wiki, i found
out that something is missing:

When I specify a filter queries like this

fq=foo:bar OR foo:baz
or
fq=foo:barfq=foo:baz
or
fq=foo:bar
or
fq=foo:baz

How many filter query entries will be cached?
Two, since there are two filters (foo:bar, foo:baz) or 3, since there are
three different combinations (foo:bar OR foo:baz, foo:bar, foo:baz)?

Thank you!
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/FQ-Filter-Query-Caching-Differences-with-OR-and-AND-tp2201004p2201004.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: (FQ) Filter Query Caching Differences with OR and AND?

2011-01-05 Thread Dennis Gearon
Is that good or bad?

 Dennis Gearon




- Original Message 
From: Jonathan Rochkind rochk...@jhu.edu
To: solr-user@lucene.apache.org solr-user@lucene.apache.org
Cc: Em mailformailingli...@yahoo.de
Sent: Wed, January 5, 2011 1:53:23 PM
Subject: Re: (FQ) Filter Query Caching Differences with OR and AND?

Each 'fq' clause is it's own cache key.

1. fq=foo:bar OR foo:baz
= one entry in filter cache

2. fq=foo:barfq=foo:baz
   = two entries in filter cache, will not use cached entry from #1

3. fq=foo:bar
= One entry, will use cached entry from #2

4. fq=foo:bar
  = One entry, will use cached entry from #2.

So if you do queries in succession using each of those four fq's in order, you 
will wind up with 3 entries in the cache.

Note that fq=foo:bar OR foo:baz is not semantically identical to 
fq=foofq=bar.  Rather that latter is semantically identical to fq=foo:bar 
AND foo:baz.   But fq=foofq=bar will be two cache entries, and fq=foo:bar 
AND foo:baz will be one cache entry, and the two won't share any cache entries.


On 1/5/2011 3:17 PM, Em wrote:
 Hi,
 
 while reading through some information on the list and in the wiki, i found
 out that something is missing:
 
 When I specify a filter queries like this
 
 fq=foo:bar OR foo:baz
 or
 fq=foo:barfq=foo:baz
 or
 fq=foo:bar
 or
 fq=foo:baz
 
 How many filter query entries will be cached?
 Two, since there are two filters (foo:bar, foo:baz) or 3, since there are
 three different combinations (foo:bar OR foo:baz, foo:bar, foo:baz)?
 
 Thank you!



Re: (FQ) Filter Query Caching Differences with OR and AND?

2011-01-05 Thread Dennis Gearon
And the sky is blue and the night is black shrug

 



- Original Message 
From: Jonathan Rochkind rochk...@jhu.edu
To: solr-user@lucene.apache.org solr-user@lucene.apache.org
Sent: Wed, January 5, 2011 2:18:20 PM
Subject: Re: (FQ) Filter Query Caching Differences with OR and AND?

Um, good or bad for what?  It depends. But it's how Solr works either way.

On 1/5/2011 5:10 PM, Dennis Gearon wrote:
 Is that good or bad?

   Dennis Gearon




 - Original Message 
 From: Jonathan Rochkindrochk...@jhu.edu
 To: solr-user@lucene.apache.orgsolr-user@lucene.apache.org
 Cc: Emmailformailingli...@yahoo.de
 Sent: Wed, January 5, 2011 1:53:23 PM
 Subject: Re: (FQ) Filter Query Caching Differences with OR and AND?

 Each 'fq' clause is it's own cache key.

 1. fq=foo:bar OR foo:baz
  =  one entry in filter cache

 2. fq=foo:barfq=foo:baz
 =  two entries in filter cache, will not use cached entry from #1

 3. fq=foo:bar
 =  One entry, will use cached entry from #2

 4. fq=foo:bar
=  One entry, will use cached entry from #2.

 So if you do queries in succession using each of those four fq's in order, you
 will wind up with 3 entries in the cache.

 Note that fq=foo:bar OR foo:baz is not semantically identical to
 fq=foofq=bar.  Rather that latter is semantically identical to fq=foo:bar
 AND foo:baz.   But fq=foofq=bar will be two cache entries, and fq=foo:bar
 AND foo:baz will be one cache entry, and the two won't share any cache 
entries.


 On 1/5/2011 3:17 PM, Em wrote:
 Hi,

 while reading through some information on the list and in the wiki, i found
 out that something is missing:

 When I specify a filter queries like this

 fq=foo:bar OR foo:baz
 or
 fq=foo:barfq=foo:baz
 or
 fq=foo:bar
 or
 fq=foo:baz

 How many filter query entries will be cached?
 Two, since there are two filters (foo:bar, foo:baz) or 3, since there are
 three different combinations (foo:bar OR foo:baz, foo:bar, foo:baz)?

 Thank you!




Re: Searching similar values for same field results in different results

2011-01-05 Thread Erick Erickson
Often adding debugQuery=on to the URL can show you very useful information
that helps pinpoint the problem. I confess I don't see anything amiss in
what
you've shown though.

Also, look at the schema browser page off the admin page, and look
at your themes field to see what is actually in your index, it may
surprise you..

Finally, the admin/analysis page (turn debug on) may also help you to see
exactly what tokenization is happening when indexing and querying. I'd guess
that the behavior isn't exactly what you expect.

Best
Erick


On Wed, Jan 5, 2011 at 10:47 AM, PeterKerk vettepa...@hotmail.com wrote:


 Something weird is happening.

 I have locations that can have 1 or more themes.
 A theme can be: Kasteel en Landgoed, or a theme can be Strand en Zee

 I checked in the database, there are many locations that have 1 or more of
 these themes assigned to it.

 Also in the response xml when I do a general search I get:
 lst name=facet_counts
 lst name=facet_queries/
 lst name=facet_fields
 lst name=themes_raw
int name=Hotel en Restaurant366/int
int name=Kasteel en Landgoed153/int- 153 found
int name=Strand en Zee16/int  - 16 found
 /lst


 When I request this:

 http://localhost:8983/solr/db/select/?indent=onfacet=truefq=themes:%22Strand%20en%20Zee%22q=*:*fl=id,title
 I get 16 results. Which is expected.

 When I request this:

 http://localhost:8983/solr/db/select/?indent=onfacet=truefq=themes:%22Kasteel%20en%20Landgoed%22q=*:*fl=id,title
 I get 0 results!!!

 why?!?


 definition in schema.xml:


 field name=themes type=text indexed=true stored=true
 multiValued=true  /
 field name=themes_raw type=string indexed=true stored=true
 multiValued=true/

 copyField source=themes dest=themes_raw/

 Why are these results differing?
 --
 View this message in context:
 http://lucene.472066.n3.nabble.com/Searching-similar-values-for-same-field-results-in-different-results-tp2199269p2199269.html
 Sent from the Solr - User mailing list archive at Nabble.com.



Re: How to integrate Solr with C/CPP client

2011-01-05 Thread prasad deshpande
Thank you for your quick reply.

How to use cURL to send and get request to the Solr?
So that I can integrate solr with C/CPP client.

Thanks and Regards,
Prasad

On Wed, Jan 5, 2011 at 10:26 PM, Juan Manuel Alvarez naici...@gmail.comwrote:

 I use the POCO C++ library (http://pocoproject.org/) to send
 HTML requests to Solr and to parse the XML response.

 Cheers!
 Juan M.

 On Wed, Jan 5, 2011 at 1:28 AM, Gora Mohanty g...@mimirtech.com wrote:
  On Wed, Jan 5, 2011 at 9:54 AM, prasad deshpande
  prasad.deshpand...@gmail.com wrote:
  It seems Solr/Lucene is completely developed in Java.
  I want to integrate Solr with C/CPP client. Is it possible? If yes, how?
  []
 
  Lucene has a C port called Lucy ( http://incubator.apache.org/lucy/ )
 
  Solr can be accessed as a web service, so it is possible to use a
  C/C++ client.
 
  Regards,
  Gora
 



solr on third party hosting account throws java.lang.RuntimeException: Cannot create directory: /usr/local/tomcat/a

2011-01-05 Thread Darniz

Hi Guys,
I am using third party hosting i uploaded the solr war file. Stopped my
tomcat, changed the web.xml and set the solr home manually there to
/usr/myaccountname/solr-home

As said in doc, i copied the entire contents under solr_dist/example/solr
under my solr-home folder. i bounced the server and when i try to access
solr, i get the following error, does this has something to do with my
hosting account permission or i have set some environment variable using
export command. Any help will be appreciated.

HTTP Status 500 - Severe errors in solr configuration. Check your log files
for more detailed information on what may be wrong. If you want solr to
continue after configuration errors, change:
abortOnConfigurationErrorfalse/abortOnConfigurationError in null
-
java.lang.RuntimeException: Cannot create directory:
/usr/local/tomcat/apache-tomcat-6.0.26/bin/./solr/data/index at
org.apache.lucene.store.NativeFSLockFactory.acquireTestLock(NativeFSLockFactory.java:74)
at
org.apache.lucene.store.NativeFSLockFactory.makeLock(NativeFSLockFactory.java:137)
at org.apache.lucene.store.Directory.makeLock(Directory.java:131) at
org.apache.lucene.index.IndexWriter.init(IndexWriter.java:1563) at
org.apache.lucene.index.IndexWriter.init(IndexWriter.java:1421) at
org.apache.solr.update.SolrIndexWriter.init(SolrIndexWriter.java:191) at
org.apache.solr.core.SolrCore.initIndex(SolrCore.java:392) at
org.apache.solr.core.SolrCore.init(SolrCore.java:545) at
org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:137)
at
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
at 
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/solr-on-third-party-hosting-account-throws-java-lang-RuntimeException-Cannot-create-directory-usr-loa-tp2204009p2204009.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Error when running simple queries to solr

2011-01-05 Thread Lance Norskog
The example/ directory in the solr distribution is a complete working
Solr installation. Just copy that to where you want, cd into it, and
run 'java -jar start.jar'. Copying directories around will be
confusing because there are a few configuration files that say where
things are and it is easy to miss one.

Lance

On Wed, Jan 5, 2011 at 1:48 AM, Grijesh.singh pintu.grij...@gmail.com wrote:

 /opt/solr i.e. solr/home only requires conf,data,lib directories.
 why you have putted other directories under solr/home location.

 The [solr/home]/data directory must required the Write permission ,Please
 check and provide appropriate permissions to directories because solr will
 try to write in data directory.

 -
 Grijesh
 --
 View this message in context: 
 http://lucene.472066.n3.nabble.com/Error-when-running-simple-queries-to-solr-tp2196060p2197539.html
 Sent from the Solr - User mailing list archive at Nabble.com.




-- 
Lance Norskog
goks...@gmail.com


Re: solr on third party hosting account throws java.lang.RuntimeException: Cannot create directory: /usr/local/tomcat/a

2011-01-05 Thread Lance Norskog
The only Tomcat configuration I know about is in Catalina/localhost.
This is documented in the Solr wiki.

On Wed, Jan 5, 2011 at 10:40 PM, Darniz rnizamud...@edmunds.com wrote:

 Hi Guys,
 I am using third party hosting i uploaded the solr war file. Stopped my
 tomcat, changed the web.xml and set the solr home manually there to
 /usr/myaccountname/solr-home

 As said in doc, i copied the entire contents under solr_dist/example/solr
 under my solr-home folder. i bounced the server and when i try to access
 solr, i get the following error, does this has something to do with my
 hosting account permission or i have set some environment variable using
 export command. Any help will be appreciated.

 HTTP Status 500 - Severe errors in solr configuration. Check your log files
 for more detailed information on what may be wrong. If you want solr to
 continue after configuration errors, change:
 abortOnConfigurationErrorfalse/abortOnConfigurationError in null
 -
 java.lang.RuntimeException: Cannot create directory:
 /usr/local/tomcat/apache-tomcat-6.0.26/bin/./solr/data/index at
 org.apache.lucene.store.NativeFSLockFactory.acquireTestLock(NativeFSLockFactory.java:74)
 at
 org.apache.lucene.store.NativeFSLockFactory.makeLock(NativeFSLockFactory.java:137)
 at org.apache.lucene.store.Directory.makeLock(Directory.java:131) at
 org.apache.lucene.index.IndexWriter.init(IndexWriter.java:1563) at
 org.apache.lucene.index.IndexWriter.init(IndexWriter.java:1421) at
 org.apache.solr.update.SolrIndexWriter.init(SolrIndexWriter.java:191) at
 org.apache.solr.core.SolrCore.initIndex(SolrCore.java:392) at
 org.apache.solr.core.SolrCore.init(SolrCore.java:545) at
 org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:137)
 at
 org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
 at
 org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
 at
 --
 View this message in context: 
 http://lucene.472066.n3.nabble.com/solr-on-third-party-hosting-account-throws-java-lang-RuntimeException-Cannot-create-directory-usr-loa-tp2204009p2204009.html
 Sent from the Solr - User mailing list archive at Nabble.com.




-- 
Lance Norskog
goks...@gmail.com


MoreLikeThis search component

2011-01-05 Thread Isha Garg

Hi ,

 I am new solr user.  Can anyone tell me the detailed approach that 
works behind the MoreLikeThis solr search component and how to use this?



Thanks!
Isha Garg


Re: (FQ) Filter Query Caching Differences with OR and AND?

2011-01-05 Thread Em

Thank you Jonathan.

fq=foo:barfq=foo:baz seems to be the better alternative for fq=foo:bar
AND foo:baz if foo:bar and foo:baz were often used in different
combinations (not always together).

However, in most of the usecases I can think of, an fq=foo:bar OR
foo:baz-behaviour is expected and it would be nice if this fq would benefit
from a cached fq=foo:bar.

I can imagine why this is not the case, if only one of two fq-clauses were
cached.
However, when foo:bar and foo:baz were cached seperately, why not
benefiting from them when a fq=foo:bar OR foo:baz or fq=foo:bar AND
foo:baz is requested?

Who is responsible for putting fq's in the filterCache? I think one has to
modify the logic of that class do benefit from already cached but recombined
filterCaches.
This would have a little bit less performance than caching the entire
foo:bar AND foo:baz BitVector, since you need to reproduce one for that
special use-case, but I think the usage of the cache is far more efficient,
if foo:bar and foo:baz occur very frequently but foo:bar AND foo:baz
do not. 

What do you think?

Regards


Jonathan Rochkind wrote:
 
 Each 'fq' clause is it's own cache key.
 
 1. fq=foo:bar OR foo:baz
  = one entry in filter cache
 
 2. fq=foo:barfq=foo:baz
 = two entries in filter cache, will not use cached entry from #1
 
 3. fq=foo:bar
   = One entry, will use cached entry from #2
 
 4. fq=foo:bar
= One entry, will use cached entry from #2.
 
 So if you do queries in succession using each of those four fq's in 
 order, you will wind up with 3 entries in the cache.
 
 Note that fq=foo:bar OR foo:baz is not semantically identical to 
 fq=foofq=bar.  Rather that latter is semantically identical to 
 fq=foo:bar AND foo:baz.   But fq=foofq=bar will be two cache 
 entries, and fq=foo:bar AND foo:baz will be one cache entry, and the 
 two won't share any cache entries.
 
 
 On 1/5/2011 3:17 PM, Em wrote:
 Hi,

 while reading through some information on the list and in the wiki, i
 found
 out that something is missing:

 When I specify a filter queries like this

 fq=foo:bar OR foo:baz
 or
 fq=foo:barfq=foo:baz
 or
 fq=foo:bar
 or
 fq=foo:baz

 How many filter query entries will be cached?
 Two, since there are two filters (foo:bar, foo:baz) or 3, since there are
 three different combinations (foo:bar OR foo:baz, foo:bar, foo:baz)?

 Thank you!
 
 

Jonathan Rochkind wrote:
 
 Each 'fq' clause is it's own cache key.
 
 1. fq=foo:bar OR foo:baz
  = one entry in filter cache
 
 2. fq=foo:barfq=foo:baz
 = two entries in filter cache, will not use cached entry from #1
 
 3. fq=foo:bar
   = One entry, will use cached entry from #2
 
 4. fq=foo:bar
= One entry, will use cached entry from #2.
 
 So if you do queries in succession using each of those four fq's in 
 order, you will wind up with 3 entries in the cache.
 
 Note that fq=foo:bar OR foo:baz is not semantically identical to 
 fq=foofq=bar.  Rather that latter is semantically identical to 
 fq=foo:bar AND foo:baz.   But fq=foofq=bar will be two cache 
 entries, and fq=foo:bar AND foo:baz will be one cache entry, and the 
 two won't share any cache entries.
 
 
 On 1/5/2011 3:17 PM, Em wrote:
 Hi,

 while reading through some information on the list and in the wiki, i
 found
 out that something is missing:

 When I specify a filter queries like this

 fq=foo:bar OR foo:baz
 or
 fq=foo:barfq=foo:baz
 or
 fq=foo:bar
 or
 fq=foo:baz

 How many filter query entries will be cached?
 Two, since there are two filters (foo:bar, foo:baz) or 3, since there are
 three different combinations (foo:bar OR foo:baz, foo:bar, foo:baz)?

 Thank you!
 
 

-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/FQ-Filter-Query-Caching-Differences-with-OR-and-AND-tp2201004p2204235.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: (FQ) Filter Query Caching Differences with OR and AND?

2011-01-05 Thread Lance Norskog
AND/OR/NOT/SUBTRACT combinations for filters would certainly be a
useful feature.

On Wed, Jan 5, 2011 at 11:36 PM, Em mailformailingli...@yahoo.de wrote:

 Thank you Jonathan.

 fq=foo:barfq=foo:baz seems to be the better alternative for fq=foo:bar
 AND foo:baz if foo:bar and foo:baz were often used in different
 combinations (not always together).

 However, in most of the usecases I can think of, an fq=foo:bar OR
 foo:baz-behaviour is expected and it would be nice if this fq would benefit
 from a cached fq=foo:bar.

 I can imagine why this is not the case, if only one of two fq-clauses were
 cached.
 However, when foo:bar and foo:baz were cached seperately, why not
 benefiting from them when a fq=foo:bar OR foo:baz or fq=foo:bar AND
 foo:baz is requested?

 Who is responsible for putting fq's in the filterCache? I think one has to
 modify the logic of that class do benefit from already cached but recombined
 filterCaches.
 This would have a little bit less performance than caching the entire
 foo:bar AND foo:baz BitVector, since you need to reproduce one for that
 special use-case, but I think the usage of the cache is far more efficient,
 if foo:bar and foo:baz occur very frequently but foo:bar AND foo:baz
 do not.

 What do you think?

 Regards


 Jonathan Rochkind wrote:

 Each 'fq' clause is it's own cache key.

 1. fq=foo:bar OR foo:baz
      = one entry in filter cache

 2. fq=foo:barfq=foo:baz
     = two entries in filter cache, will not use cached entry from #1

 3. fq=foo:bar
   = One entry, will use cached entry from #2

 4. fq=foo:bar
    = One entry, will use cached entry from #2.

 So if you do queries in succession using each of those four fq's in
 order, you will wind up with 3 entries in the cache.

 Note that fq=foo:bar OR foo:baz is not semantically identical to
 fq=foofq=bar.  Rather that latter is semantically identical to
 fq=foo:bar AND foo:baz.   But fq=foofq=bar will be two cache
 entries, and fq=foo:bar AND foo:baz will be one cache entry, and the
 two won't share any cache entries.


 On 1/5/2011 3:17 PM, Em wrote:
 Hi,

 while reading through some information on the list and in the wiki, i
 found
 out that something is missing:

 When I specify a filter queries like this

 fq=foo:bar OR foo:baz
 or
 fq=foo:barfq=foo:baz
 or
 fq=foo:bar
 or
 fq=foo:baz

 How many filter query entries will be cached?
 Two, since there are two filters (foo:bar, foo:baz) or 3, since there are
 three different combinations (foo:bar OR foo:baz, foo:bar, foo:baz)?

 Thank you!



 Jonathan Rochkind wrote:

 Each 'fq' clause is it's own cache key.

 1. fq=foo:bar OR foo:baz
      = one entry in filter cache

 2. fq=foo:barfq=foo:baz
     = two entries in filter cache, will not use cached entry from #1

 3. fq=foo:bar
   = One entry, will use cached entry from #2

 4. fq=foo:bar
    = One entry, will use cached entry from #2.

 So if you do queries in succession using each of those four fq's in
 order, you will wind up with 3 entries in the cache.

 Note that fq=foo:bar OR foo:baz is not semantically identical to
 fq=foofq=bar.  Rather that latter is semantically identical to
 fq=foo:bar AND foo:baz.   But fq=foofq=bar will be two cache
 entries, and fq=foo:bar AND foo:baz will be one cache entry, and the
 two won't share any cache entries.


 On 1/5/2011 3:17 PM, Em wrote:
 Hi,

 while reading through some information on the list and in the wiki, i
 found
 out that something is missing:

 When I specify a filter queries like this

 fq=foo:bar OR foo:baz
 or
 fq=foo:barfq=foo:baz
 or
 fq=foo:bar
 or
 fq=foo:baz

 How many filter query entries will be cached?
 Two, since there are two filters (foo:bar, foo:baz) or 3, since there are
 three different combinations (foo:bar OR foo:baz, foo:bar, foo:baz)?

 Thank you!



 --
 View this message in context: 
 http://lucene.472066.n3.nabble.com/FQ-Filter-Query-Caching-Differences-with-OR-and-AND-tp2201004p2204235.html
 Sent from the Solr - User mailing list archive at Nabble.com.




-- 
Lance Norskog
goks...@gmail.com


Re: MoreLikeThis search component

2011-01-05 Thread Anurag

You can go through page 182 of this book
http://books.google.co.in/books?id=m2q3PwAACAAJdq=download+solr+search+server+1.4hl=enei=inIlTaudLcHrrQfB4pmaDAsa=Xoi=book_resultct=book-thumbnailresnum=1ved=0CDEQ6wEwAA
.

On Thu, Jan 6, 2011 at 12:53 PM, Isha Garg [via Lucene] 
ml-node+2204185-699553121-146...@n3.nabble.comml-node%2b2204185-699553121-146...@n3.nabble.com
 wrote:

 Hi ,

   I am new solr user.  Can anyone tell me the detailed approach that
 works behind the MoreLikeThis solr search component and how to use this?


 Thanks!
 Isha Garg


 --
  View message @
 http://lucene.472066.n3.nabble.com/MoreLikeThis-search-component-tp2204185p2204185.html
 To start a new topic under Solr - User, email
 ml-node+472068-1941297125-146...@n3.nabble.comml-node%2b472068-1941297125-146...@n3.nabble.com
 To unsubscribe from Solr - User, click 
 herehttp://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=472068code=YW51cmFnLml0LmpvbGx5QGdtYWlsLmNvbXw0NzIwNjh8LTIwOTgzNDQxOTY=.





-- 
Kumar Anurag


-
Kumar Anurag

-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/MoreLikeThis-search-component-tp2204185p2204265.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: solr on third party hosting account throws java.lang.RuntimeException: Cannot create directory: /usr/local/tomcat/a

2011-01-05 Thread Grijesh.singh

/usr/local/tomcat/apache-tomcat-6.0.26/bin/./solr/data/index

Thats showing that solr is getting as solr/home as
/usr/local/tomcat/apache-tomcat-6.0.26/bin/
either your solr/home settings in web.xml is not working 
Or
You have the default solrconfig.xml data-directory settings ,either you
have to modify the data-directory setting or comment out data-directory
setting in solrconfig.xml

-
Grijesh
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/solr-on-third-party-hosting-account-throws-java-lang-RuntimeException-Cannot-create-directory-usr-loa-tp2204009p2204298.html
Sent from the Solr - User mailing list archive at Nabble.com.