Calling Solr requests from java code - examples?

2007-01-16 Thread maarten
Hi, Could someone give me some code examples on how Solr requests can be called by Java code. I'm new to Java and I'm not very sure on how URLs + params can be called from java code and how the responses can be captured. Or what th best practices are? Grtz

Re: Calling Solr requests from java code - examples?

2007-01-16 Thread maarten
Thanks! and how would you do it calling it from another web application, let's say from a servlet or so? I need to do some stuff in my web java code, then call the Solr service and do some more stuff afterwards Quoting Bertrand Delacretaz <[EMAIL PROTECTED]>: On 1/16/07, [EMAIL PROTECTED]

Converting Solr response back to pojo's, experiences?

2007-01-16 Thread maarten
Anyone having experience converting xml responses back to pojo's, which technologies have you used? Anyone doing json <-> pojo's? Grtz

Bug ? unique id

2007-03-16 Thread Maarten . De . Vilder
id's. thanks in advance, maarten

Re: Bug ? unique id

2007-03-16 Thread Maarten . De . Vilder
we get > duplicate id's. > > thanks in advance, > maarten

Re: Bug ? unique id

2007-03-16 Thread Maarten . De . Vilder
he.org cc Subject Re: Bug ? unique id Hi Maarten Why not copy your unique id into another field with the required filters and use that for search? Regards Paul On 3/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > because we want to be able to search our unique id

Re: Bug ? unique id

2007-03-19 Thread Maarten . De . Vilder
duplicate unique key *stored* values back from the server (and kind of frustrating) since we now use a copyfield to perform searches on the IDs, there is no more reason to index our unique key field what would happen if I set indexed=false on my unique id field ?? Maarten :-) Chris

Re: Bug ? unique id

2007-03-21 Thread Maarten . De . Vilder
ok, i'm starting to see the light :)) at this moment, we are running this for our uniqueID : field : and everything is working well ... so i dont explicitly say indexed='true' ... i guess indexed is default true ... i'll be sure do to do some testing with stored=false and indexed=false but tha

Re: How to assure a permanent index.

2007-03-21 Thread Maarten . De . Vilder
the documents are only deleted when you do a commit ... so you should never have an empty index (or at least not for more then a couple of seconds) note that you dont have to delete all documents you can just upload new documents with the same UniqueID and Solr will delete the old document

Re: Problems with special characters

2007-03-21 Thread Maarten . De . Vilder
hey, we had the same problem with the Solr Java Client ... they forgot to put UTF-8 encoding on the stream ... i posted our fix on http://issues.apache.org/jira/browse/SOLR-20 it's this post : http://issues.apache.org/jira/browse/SOLR-20#action_12478810 Frederic Hennequin [07/Mar/07 08:27 AM]

Re: Problems with special characters

2007-03-21 Thread Maarten . De . Vilder
we didnt use it, but i took a quick look : you need to implement the "hl=on" attribute in the getquerystring() method of the solrqueryImpl the resultdocs allready contain highlighting, that's why you found processHighlighting in the Resultparser good luck ! m "Thierry Collogne" <[EMAIL PRO

Re: How to assure a permanent index.

2007-03-21 Thread Maarten . De . Vilder
well, yes indeed :) but i do think it is easier to put up synchronisation for deleted documents as well clearing the whole index is kind of overkill when you do this : * delete all documents * submit all documents * commit you should also keep in mind that Solr will do an autocommit after a ce

Re: Problems with special characters

2007-03-22 Thread Maarten . De . Vilder
nice one ! "Thierry Collogne" <[EMAIL PROTECTED]> 22/03/2007 09:00 Please respond to solr-user@lucene.apache.org To solr-user@lucene.apache.org cc Subject Re: Problems with special characters Thanks. I made some modifications to SolrQuery.java to allow highlighting. I will post the c

Re: Problems with special characters

2007-03-22 Thread Maarten . De . Vilder
No, i didn't try to use it (on account of the fact that we dont use Solr to display the results) the only thing our Solr server returns are ID's ... so there is nothing to put highlights on but the code doesnt look half bad :) lets hope the Client Developers pick up on it :) "Thierry Collogn

Re: multiple indexes

2007-03-23 Thread Maarten . De . Vilder
> Why not create a multivalued field that stores the customer perms? > add has_access:cust1 has_access:cust2, etc to the document at index > time, and turn this into a filter query at query time? that is what we are doing at the moment, and i must say, it works very and does not slow the server d

Re: Reposting unABLE to match

2007-03-27 Thread Maarten . De . Vilder
what exactly is the problem ? seems like you end up with the same term text in both query and index analyzer ... you should have found a match... Shridhar Venkatraman <[EMAIL PROTECTED]> 27/03/2007 14:08 Please respond to solr-user@lucene.apache.org To solr-user@lucene.apache.org cc Subj

Re: Reposting unABLE to match

2007-03-27 Thread Maarten . De . Vilder
the only thing i can think of is the fact that in the index analysis the term-type is "word" and in the query analysis the term-type is "alphanumeric" you should be getting a match if that doesnt matter ... you get exactly the same term texts ... Shridhar Venkatraman <[EMAIL PROTECTED]> 27

Item Search Database

2007-03-28 Thread Maarten . De . Vilder
the full 300.000 records and i am kind of afraid that with the second option Solr will have to search more records/indexes to get the same result... well, hope you understand my question and thanks in advance ! - Maarten PS: thank you to everybody on this list for the help and thank you to all o

Re: C# API for Solr

2007-04-01 Thread Maarten . De . Vilder
Well, i think there will be a lot of people who will be very happy with this C# client. grts,m "Jeff Rodenburg" <[EMAIL PROTECTED]> 31/03/2007 18:00 Please respond to solr-user@lucene.apache.org To solr-user@lucene.apache.org cc Subject C# API for Solr We built our first search sys

Re: Solr logo poll

2007-04-09 Thread Maarten . De . Vilder
i would use the first one, much more professional "Yonik Seeley" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 06/04/2007 19:51 Please respond to solr-user@lucene.apache.org To solr-user@lucene.apache.org cc Subject Solr logo poll Quick poll... Solr 2.1 release planning is underway,

Leading wildcards

2007-04-18 Thread Maarten . De . Vilder
le 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

Re: AW: Leading wildcards

2007-04-20 Thread Maarten . De . Vilder
release of Solr : do not make this default, too many risks but do make an option in the config to enable it, it's a very nice feature thanks everybody for the help and have a nice weekend, maarten "Burkamp, Christian" <[EMAIL PROTECTED]> 19/04/2007 12:37 Please respond to

Re: AW: Leading wildcards

2007-04-23 Thread Maarten . De . Vilder
moment. grts,m "Michael Kimsal" <[EMAIL PROTECTED]> 20/04/2007 16:30 Please respond to solr-user@lucene.apache.org To solr-user@lucene.apache.org cc Subject Re: AW: Leading wildcards Maarten: Would you mind sharing your custom query parser? On 4/20/07, [EMAIL PROTECTED] &

Re: AW: Leading wildcards

2007-04-23 Thread Maarten . De . Vilder
e solr source code ? - if we need to adjust the solr source, what do we need to change ? thanks in advance ! Maarten

Collection Distirbution in windows

2007-05-02 Thread Maarten . De . Vilder
i know this is a stupid question, but are there any collection distribution scripts for windows available ? thanks !

Re: Collection Distirbution in windows

2007-05-03 Thread Maarten . De . Vilder
damn, there goes the platform independance ... is there anybody with a lillte more experience when it comes to collection distribution on Windows ? tnx in advance ! "Bill Au" <[EMAIL PROTECTED]> 02/05/2007 15:09 Please respond to solr-user@lucene.apache.org To solr-user@lucene.apache.org