Re: Sort five random "Top Offers" to the top

2011-09-28 Thread MOuli
Hey Community. I write my first component and now i got a problem hear is my code: @Override public void prepare(ResponseBuilder rb) throws IOException { try { rb.req.getParams().getBool("topoffers.show", true); String client = rb.req.getParams().get("client", "1");

Re: Sort five random "Top Offers" to the top

2011-09-22 Thread MOuli
Hmm is it possible for me to write my own search component? I just downloaded the solr sources and need some informations how the search components work. Is there anything out there which can help me? -- View this message in context: http://lucene.472066.n3.nabble.com/Sort-five-random-Top-Offers

Re: Sort five random "Top Offers" to the top

2011-09-22 Thread MOuli
This was my first idea, but I want a solution which is handled by solr. When I didn't find a solution then I have to use something like that. -- View this message in context: http://lucene.472066.n3.nabble.com/Sort-five-random-Top-Offers-to-the-top-tp3355469p3358148.html Sent from the Solr -

Sort five random "Top Offers" to the top

2011-09-21 Thread MOuli
Hey Community. I got a Lucene/Solr Index with many offers. Some of them are marked by a flag field "topoffer" that they are top offers. Now I want so sort randomly 5 of this offers on the top. For Example HTC Sensation - topoffer = true HTC Desire - topoffer = false Samsung Galaxy S2 - topoffe

Re: Sorting 0 values last

2011-03-17 Thread MOuli
Okay. When I use the map function with ..&sort=map(price, 0, 0, 0, 1) desc then solr output an error: 17.03.2011 09:42:58 org.apache.solr.common.SolrException log SCHWERWIEGEND: org.apache.solr.common.SolrException: Missing sort order. at org.apache.solr.search.QueryParsing.parseSort(Quer

Sorting 0 values last

2011-03-15 Thread MOuli
Hi @everyone. I want so sort ASC on a price field, but some of the docs got a 0 (not NULL) value. Now I want that this docs are at the end when i sort the price field ascending. Is it possible? Thanks in advance. MOuli -- View this message in context: http://lucene.472066.n3.nabble.com

Re: Datetime problems with dataimport

2011-02-22 Thread MOuli
Ok i got it. It should look like -mm-ddThh:mm:ssZ for example: 2011-02-22T15:07:00Z -- View this message in context: http://lucene.472066.n3.nabble.com/Datetime-problems-with-dataimport-tp2545654p2552477.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Datetime problems with dataimport

2011-02-22 Thread MOuli
Can you give me an example? Should it looks like 2011-02-22'T'14:55:20 or 2011-02-22T14:55:20 or 2011-02-22 14:55:20. I tested every one of this formats, but got anyway the Exception. Invalid Date String:'2009-12-09'T'00:00:00' Invalid Date String:'2009-12-09 00:00:00' Invalid Date String:'2009-

Datetime problems with dataimport

2011-02-21 Thread MOuli
Hey guys. I want to evaluate Solr as search engine, but now I have got an "Invalid Date String"-Exception. Here is the Error Message: WARNUNG: Error creating document : SolrInputDocument[{machineId=machineId(1.0)={1151665}, priceBrutto=priceBrutto(1.0