Re: Faceting return value of a function query?

2014-11-05 Thread Tom
Turns out that update processors perfectly suit me needs. I ended up using the StatelessScriptUpdateProcessor with a simple js script :-) On Mon Nov 03 2014 at 下午10:40:52 Yubing (Tom) Dong 董玉冰 tom.tung@gmail.com wrote: I see. Thank you! :-) Sent from my Android phone On Nov 3, 2014 9:35

Faceting return value of a function query?

2014-11-03 Thread Tom
Hi, I'm new to Solr, and I'm having a problem with faceting. I would really appreciate it if you could help :) I have a set of documents in JSON format, which I could post to my Solr core using the post.jar tool. Each document contains two fields, namely startDate and endDate, both of which are

Re: Faceting return value of a function query?

2014-11-03 Thread Erick Erickson
Wouldn't it be easiest to compute the span at index time? Then it's very straight-forward. Best, Erick On Mon, Nov 3, 2014 at 8:18 PM, Yubing (Tom) Dong 董玉冰 tom.tung@gmail.com wrote: Hi, I'm new to Solr, and I'm having a problem with faceting. I would really appreciate it if you could

Re: Faceting return value of a function query?

2014-11-03 Thread Tom
Hi Erik, Thanks for the reply! Do you mean parse and modify the documents before sending them to Solr? Cheers, Yubing On Mon, Nov 3, 2014 at 8:48 PM, Erick Erickson erickerick...@gmail.com wrote: Wouldn't it be easiest to compute the span at index time? Then it's very straight-forward.

Re: Faceting return value of a function query?

2014-11-03 Thread Erick Erickson
Yep. It's almost always easier and faster if you can pre-compute as much as possible during indexing time. It'll take longer to index of course, but the ratio of writing to the index to searching is usually hugely in favor of doing the work during indexing. Best, Erick On Mon, Nov 3, 2014 at

Re: Faceting return value of a function query?

2014-11-03 Thread Tom
I see. Thank you! :-) Sent from my Android phone On Nov 3, 2014 9:35 PM, Erick Erickson erickerick...@gmail.com wrote: Yep. It's almost always easier and faster if you can pre-compute as much as possible during indexing time. It'll take longer to index of course, but the ratio of writing to