Re: Document Level Security (SOLR-1872 ,SOLR,SOLR-1834)

2011-06-17 Thread Constantijn Visinescu
Just to chip in my 2 cents: You know you can increase the max number of boolean clauses in the configuration files? Depending on your situation it might not be a permanent fix, but it could provide some instant relief. Constantijn On Fri, Jun 17, 2011 at 11:19 AM, Peter Sturge

Getting and viewing a heap dump

2011-05-31 Thread Constantijn Visinescu
Hi Bernd, I'm assuming Linux here, if you're running something else these instructions might differ slightly. First get a heap dump with: jmap -heap:format=b,file=/path/to/generate/heapdumpfile.hprof 1234 with 1234 being the PID (process id) of the JVM After you get a Heap dump you can analyze

Re: Getting and viewing a heap dump

2011-05-31 Thread Constantijn Visinescu
mail in richtext or similar formats. Gmail has a link to change this, what client are you using? And thanks for participating! Best Erick On Tue, May 31, 2011 at 3:22 AM, Constantijn Visinescu baeli...@gmail.com wrote: Hi Bernd, I'm assuming Linux here, if you're running something else

Re: Problem in setting the request writer in SolrJ (wiki page wrong?)

2010-08-24 Thread Constantijn Visinescu
/CommonsHttpSolrServer.html#setRequestWriter%28org.apache.solr.client.solrj.request.RequestWriter%29 If you are using EmbeddedSolrServer, the params are not serialized via RequestWriter, so you don't have any options there. ryan On Mon, Aug 23, 2010 at 9:24 AM, Constantijn Visinescu baeli...@gmail.com wrote: Hello

Re: Query speed decreased dramatically, not sure why though?

2010-08-24 Thread Constantijn Visinescu
What happens to your performance if you query for *:* instead of * ? (probably have to url encode the colon) On Tue, Aug 24, 2010 at 11:26 AM, C0re blue-...@hotmail.co.uk wrote: We have a query which takes the form of .../select?q=*sort=evalDate+desc,score+descstart=0rows=10 This query

Re: Configuring multiple SOLR apps to play nice with MBeans / JMX

2010-03-24 Thread Constantijn Visinescu
Don't know about other servlet containers, but i can confirm Resin 3 breaks if you try to load 2 completely independent webapps into it that both use solr with jmx enabled. I also had a similar issue with Blaze DS (library for flash remoting that I'm using to power the UI for my webapp), but

Re: Configuring multiple SOLR apps to play nice with MBeans / JMX

2010-03-24 Thread Constantijn Visinescu
it would probably be pretty trivial to add if you want to take a stab at a patch for it. -Hoss *stab* https://issues.apache.org/jira/browse/SOLR-1843 :)

Configuring multiple SOLR apps to play nice with MBeans / JMX

2010-03-23 Thread Constantijn Visinescu
. Thanks in advance, Constantijn Visinescu

Re: Architectural help

2010-03-11 Thread Constantijn Visinescu
DIH config? Constantijn Visinescu wrote: Try making a database view that contains everything you want to index, and then just use the DIH. Worked when i tested it ;) On Wed, Mar 10, 2010 at 1:56 AM, blargy zman...@hotmail.com wrote: I was wondering if someone could be so kind

Re: Architectural help

2010-03-10 Thread Constantijn Visinescu
Try making a database view that contains everything you want to index, and then just use the DIH. Worked when i tested it ;) On Wed, Mar 10, 2010 at 1:56 AM, blargy zman...@hotmail.com wrote: I was wondering if someone could be so kind to give me some architectural guidance. A little about

Re: DIH out of memory exception

2009-10-28 Thread Constantijn Visinescu
Does this help? http://wiki.apache.org/solr/DataImportHandlerFaq#I.27m_using_DataImportHandler_with_a_MySQL_database._My_table_is_huge_and_DataImportHandler_is_going_out_of_memory._Why_does_DataImportHandler_bring_everything_to_memory.3F On Wed, Oct 28, 2009 at 12:38 AM, William Pierce

Re: Problem getting Solr home from JNDI in Tomcat

2009-09-29 Thread Constantijn Visinescu
This might be a bit of a hack but i got this in the web.xml of my applicatin and it works great. !-- People who want to hardcode their Solr Home directly into the WAR File can set the JNDI property here... -- env-entry env-entry-namesolr/home/env-entry-name

Re: Solr http post performance seems slow - help?

2009-09-25 Thread Constantijn Visinescu
This may or may not help but here goes :) When i was running performance tests i look a look at the simple post tool that comes with the solr examples. First i changed my schema.xml to fit my needs and then i deleted the old index so solr created a blank one when i started up. Then i had a had a

Re: OutOfMemory error on solr 1.3

2009-09-11 Thread Constantijn Visinescu
=4096 -Dsolr.solr.home=/opt/apache-solr-1.3.0/example/solr Francis -Original Message- From: Constantijn Visinescu [mailto:baeli...@gmail.com] Sent: Wednesday, September 09, 2009 11:35 PM To: solr-user@lucene.apache.org Subject: Re: OutOfMemory error on solr 1.3 Just wondering, how

Re: OutOfMemory error on solr 1.3

2009-09-10 Thread Constantijn Visinescu
Just wondering, how much memory are you giving your JVM ? On Thu, Sep 10, 2009 at 7:46 AM, Francis Yakin fya...@liquid.com wrote: I am having OutOfMemory error on our slaves server, I would like to know if someone has the same issue and have the solution for this. SEVERE: Error during

Re: Solr fitting in travel site context?

2009-09-10 Thread Constantijn Visinescu
I'd run look into faceting and run a test. Create a schema, index the data and then run a query for *:* facteted by hotel to get a list of all the hotels you want followed by a query that returns all documents matching that hotel for your 2nd usecase. You're probably still going to want a SQL

Re: slow response

2009-09-09 Thread Constantijn Visinescu
Just wondering, is there an easy way to load the whole index into ram? On Wed, Sep 9, 2009 at 4:22 PM, Alex Baranov alex.barano...@gmail.comwrote: There is a good article on how to scale the Lucene/Solr solution:

Re: Solr Query help - sorting

2009-08-25 Thread Constantijn Visinescu
make a new multivalued field in your schema.xml, copy both width and length into that field, and then sort on that field ? On Tue, Aug 25, 2009 at 5:40 AM, erikea...@yahoo.com erikea...@yahoo.comwrote: Clever... but if more than one row adds up to the same value I may get the wrong order (like

Re: Optimizing a query to sort results alphabetically for a determinated field

2009-08-24 Thread Constantijn Visinescu
There's a sortMissingLast true/false property that you can set on your fielType definitions in the schema. On Mon, Aug 24, 2009 at 11:58 AM, Marc Sturlese marc.sturl...@gmail.comwrote: Hey there, I need to sort my query results alphabetically for a determinated field called town. This field

Re: Optimizing a query to sort results alphabetically for a determinated field

2009-08-24 Thread Constantijn Visinescu
for sortable fields: sint,sfloat,sdouble,slong. Can I apply sortMissingLastto text fields analyzed with KeywordAnalyzer? Constantijn Visinescu wrote: There's a sortMissingLast true/false property that you can set on your fielType definitions in the schema. On Mon, Aug 24, 2009 at 11:58 AM, Marc

Re: dynamic changes to schema

2009-08-20 Thread Constantijn Visinescu
with something like my_ dynamic fields doesn't work, do they? best, Marco Constantijn Visinescu schrieb: huh? I think I lost you :) You want to use a multivalued field to list what dynamic fields you have in your document? Also if you program your application correctly you should be able

Re: Group by field in Solr

2009-08-20 Thread Constantijn Visinescu
You'll want to use faceting, try to use a query like this http://localhost:8080/Solr/select/?q=artist%3Awarversion=2.2start=0rows=0facet=truefacet.limit=-1facet.field=artist replace localhost:8080 with your own :) On Thu, Aug 20, 2009 at 2:40 PM, Daniel Löfquist daniel.lofqu...@it.cdon.com

Re: Remove data from index

2009-08-20 Thread Constantijn Visinescu
You could write a solr query that queries *:* and only returns the id field and then throw out all the IDs from select id from databaseTable and then run a delete query for all the IDs that are left after wards. However you'd have to write a seperate program/script to do this i think as the DIH

Re: dynamic changes to schema

2009-08-19 Thread Constantijn Visinescu
added fields. Good Idea? thanks, Marco Constantijn Visinescu schrieb: use a dynamic field ? On Tue, Aug 18, 2009 at 5:09 PM, Marco Westermann m...@intersales.de wrote: Hi there, is there a possibility to change the solr-schema over php dynamically. The web-application I want to index

Re: Cannot get solr 1.3.0 to run properly with plesk 9.2.1 on CentOS

2009-08-18 Thread Constantijn Visinescu
Ok ... sounds like something is screwed up somewhere(tm). Hard part is figuring out where :) My suggestion: Throw everything that's remotely related to the webapp you're trying to build off that server and make sure you get all of it. (no stray bits of solr confuration files leftover anywhere).

Re: Maximum number of values in a multi-valued field.

2009-08-18 Thread Constantijn Visinescu
similar to your production server and see what happens :) For me there was no noticeable performance difference. Constantijn Visinescu On Tue, Aug 18, 2009 at 1:15 AM, Aravind Naidu aravind.na...@vsc.ph wrote: Hi, The possibility is that all items in this field could be unique. Let me clarify

Re: Release Date Solr 1.4

2009-08-18 Thread Constantijn Visinescu
Last i heard the eta was aprox a month, but they won't release it untill it's ready. Check JIRA here for the list of open issues that need fixing before 1.4 https://issues.apache.org/jira/secure/IssueNavigator.jspa?sorter/field=updatedsorter/order=DESC Constantijn Visinescu On Tue, Aug 18, 2009

Re: Cannot get solr 1.3.0 to run properly with plesk 9.2.1 on CentOS

2009-08-18 Thread Constantijn Visinescu
assumptionAm pretty sure solr.xml is if you want to define multiple solr cores for your application.So it makes sense that solr checks for that first, however if it doesn't find one it continues to start up with a single core. /assumption I KNOW it runs just fine for me without a solr.xml. The

Re: dynamic changes to schema

2009-08-18 Thread Constantijn Visinescu
use a dynamic field ? On Tue, Aug 18, 2009 at 5:09 PM, Marco Westermann m...@intersales.de wrote: Hi there, is there a possibility to change the solr-schema over php dynamically. The web-application I want to index at the moment has the feature to add fields to entitys and you can tell this

Re: Cannot get solr 1.3.0 to run properly with plesk 9.2.1 on CentOS

2009-08-17 Thread Constantijn Visinescu
near the bottom of my web.xml (just above /web-app) i got env-entry env-entry-namesolr/home/env-entry-name env-entry-valuepath/to/solr/env-entry-value env-entry-typejava.lang.String/env-entry-type /env-entry While you're at it you might want to make sure the

Re: Cannot get solr 1.3.0 to run properly with plesk 9.2.1 on CentOS

2009-08-17 Thread Constantijn Visinescu
Not sure what's going on but i see jetty stuff scrolling by, that can't be right :) Jetty and Tomcat are 2 seperate webservers for serving java applications. the 2 of them mixing doesn't sound like a good idea. Jetty is included in the examples for .. well .. example purposes ... but it's not a

Re: Choosing between t and s field types

2009-08-14 Thread Constantijn Visinescu
Accoridng to the documentation in schema.xml.original sint etc can be used for both sorting and range queries? !-- Numeric field types that manipulate the value into a string value that isn't human-readable in its internal form, but with a lexicographic ordering the same as

Re: Choosing between t and s field types

2009-08-14 Thread Constantijn Visinescu
?) Constantijn On Fri, Aug 14, 2009 at 1:39 PM, Ninad Raut hbase.user.ni...@gmail.comwrote: Hi Constantijn, What are the t types viz;tint,tfloat etc. for? Is there a special use of these? On Fri, Aug 14, 2009 at 4:37 PM, Constantijn Visinescu baeli...@gmail.comwrote: Accoridng

Re: Searching for reservations/availability with Solr

2009-08-12 Thread Constantijn Visinescu
? Constantijn Visinescu On Wed, Aug 12, 2009 at 10:49 AM, Avlesh Singh avl...@gmail.com wrote: Searches would be for documents (rooms) that don't have certain dates in their multi-valued fields for the a particular month. E.g if you wanted to find out rooms available on 15th, 16th and 17th

Re: Searching for reservations/availability with Solr

2009-08-12 Thread Constantijn Visinescu
On Tue, Aug 11, 2009 at 6:13 PM, Shalin Shekhar Mangar shalinman...@gmail.com wrote: On Tue, Aug 11, 2009 at 7:08 PM, Constantijn Visinescu baeli...@gmail.comwrote: doc str name=nameRoom1/str date name=reserved_from_112000-08-01T00:00:00Z/date date name=reserved_to_112000-08-31T23

Re: Searching for reservations/availability with Solr

2009-08-12 Thread Constantijn Visinescu
-int in that case. Any way i could get the functionality you're describing without having to basically write my own data import handler implementation Worst come worst, you may need to write a transformer. Cheers Avlesh On Wed, Aug 12, 2009 at 4:38 PM, Constantijn Visinescu baeli

Re: Searching for reservations/availability with Solr

2009-08-12 Thread Constantijn Visinescu
since ... kind of data. Cheers Avlesh On Wed, Aug 12, 2009 at 5:26 PM, Constantijn Visinescu baeli...@gmail.comwrote: Hmm .. I looked up the transformer class and that should work, thanks for the tip :) Thinking about it a bit more, wouldn't it be easier to just add a field like

Searching for reservations/availability with Solr

2009-08-11 Thread Constantijn Visinescu
that accomplishes the same idea). I'm at a loss as to how to formulate a solr query to get the data i want. Thanks in advance, Constantijn Visinescu