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

2010-08-23 Thread Constantijn Visinescu
riter I'm supposed to be able to set the requestwriter like so: server.setRequestWriter(new BinaryRequestWriter()); However this method doesn't seem to exists in the SolrServer class of SolrJ 1.4.1 ? How do i set it to process updates in the java binary format? Thanks in advance, Consta

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

2010-08-24 Thread Constantijn Visinescu
olrj.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 > 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 wrote: > > We have a query which takes the form of > > ".../select?q=*&sort=evalDate+desc,score+desc&start=0&rows=10" > > This query takes around 5 s

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
es acts up if you send 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 > wrote: &g

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 wrote: > You'll

Searching for reservations/availability with Solr

2009-08-11 Thread Constantijn Visinescu
Thanks in advance, Constantijn Visinescu

Re: Searching for reservations/availability with Solr

2009-08-12 Thread Constantijn Visinescu
rt handler implementation? Constantijn Visinescu On Wed, Aug 12, 2009 at 10:49 AM, Avlesh Singh 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

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 > wrote: > > > > > > > Room1 > > 2000-08-01T00:00:00Z > > 2000-08-31T23:59:59Z > > > > &g

Re: Searching for reservations/availability with Solr

2009-08-12 Thread Constantijn Visinescu
y, as Shalin proposed. You should > make the field of type sortable-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 t

Re: Searching for reservations/availability with Solr

2009-08-12 Thread Constantijn Visinescu
nd > of data. > > Cheers > Avlesh > > On Wed, Aug 12, 2009 at 5:26 PM, Constantijn Visinescu > wrote: > > > Hmm .. I looked up the transformer class and that should work, thanks for > > the tip :) > > > > Thinking about it a bit more, wouldn't it

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? On Fri, Aug 14, 2009 at 11:08 AM, Ninad Raut wrote: > Hi, > I want certain fields of type int,float and date to be sortable and I > should > be able to run my range queries a

Re: Choosing between t and s field types

2009-08-14 Thread Constantijn Visinescu
mments it might have?) Constantijn On Fri, Aug 14, 2009 at 1:39 PM, Ninad Raut wrote: > 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 > wrote: > > > Accori

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 ) i got solr/home path/to/solr java.lang.String While you're at it you might want to make sure the following line in your solrconfig.xml is commented out next you should copy the sorl directory (the one with the conf, da

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

2009-08-17 Thread Constantijn Visinescu
assloader > Aug 16, 2009 6:14:44 PM org.apache.solr.servlet.SolrDispatchFilter init > SEVERE: Could not start SOLR. Check solr/home property > > I don't understand... it says solr home set to > '/usr/share/tomcat5/solr/' but the error says that there is something > w

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
erver 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 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=updated&sorter/order=DESC Constantijn Visinescu

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

2009-08-18 Thread Constantijn Visinescu
Am 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. I KNOW it runs just fine for me without a solr.xml. The exception seems to be c

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 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 fields that t

Re: dynamic changes to schema

2009-08-18 Thread Constantijn Visinescu
gt; dynamically added fields. Good Idea? > > thanks, > Marco > > Constantijn Visinescu schrieb: > >> use a dynamic field ? >> >> On Tue, Aug 18, 2009 at 5:09 PM, Marco Westermann >> wrote: >> >> >> >>> Hi there, >>> >&g

Re: dynamic changes to schema

2009-08-19 Thread Constantijn Visinescu
figuration, that it is searchable. So I >> need a field in solr for the author. Cause I cant restrict the user to >> prefix every field with something like my_ dynamic fields doesn't work, do >> they? >> >> best, >> Marco >> >> Constantijn Visines

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%3Awar&version=2.2&start=0&rows=0&facet=true&facet.limit=-1&facet.field=artist replace localhost:8080 with your own :) On Thu, Aug 20, 2009 at 2:40 PM, Daniel Löfquist < daniel.lofqu...@it.cdon.c

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: 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 wrote: > > Hey there, I need to sort my query results alphabetically for a > determinated > field called "town". This field is analyzed with

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

2009-08-24 Thread Constantijn Visinescu
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, Mar

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 wrote: > Clever... but if more than one row adds up to the same value I may get the > wrong order (like 50, 50 and 10, 90

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 wrote: > There is a good article on how to scale the Lucene/Solr solution: > > > http://www.lucidimagination.com/Community/Hear-from-the-Experts/Articles/Scaling-Lucene-and-Solr > >

Re: OutOfMemory error on solr 1.3

2009-09-09 Thread Constantijn Visinescu
Just wondering, how much memory are you giving your JVM ? On Thu, Sep 10, 2009 at 7:46 AM, Francis Yakin 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 auto-warming of >

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 dat

Re: OutOfMemory error on solr 1.3

2009-09-11 Thread Constantijn Visinescu
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 much

Re: Solr http post performance seems slow - help?

2009-09-24 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: 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. solr/home /Solr/WebRoot/WEB-INF/solr java.lang.String On Tue, Sep 29, 2009 at 2:32 PM, Andrew Clegg wrote: > > Hi all, I'm having problems getting Solr to start on

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 wrote: >

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 wrote: > > I was wondering if someone could be so kind to give me some architectural > guidance. > > A little about our setup. We

Re: Architectural help

2010-03-11 Thread Constantijn Visinescu
quot; in my 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, blar

Configuring multiple SOLR apps to play nice with MBeans / JMX

2010-03-23 Thread Constantijn Visinescu
'd fix my problem but i can't seem to find it in the documentation. Thanks in advance, Constantijn Visinescu

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

2010-03-23 Thread Constantijn Visinescu
schema.xml&dataDir=data > > This is made possible due to the fact that each core can have it's own > solrconfig.xml > See example/multicore/ in your solr distribution. > > Hope this helps. > > Regards > Charl Mert > > > > On Tue, Mar 23, 2010 at 12:10 PM,

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 Blaze

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 :)