Tuesday, December 29, 2009

SolrNet 0.2.3 released

I just released SolrNet 0.2.3. There aren't any significant changes from beta1, I just filled in some missing documentation bits and a couple of tests.

For the next release I'll focus on performance improvements and making multi-core access easier.

Downloads:

5 comments:

J said...

Hi Mauricio,

I have a question regarding the mappings. In the sample web app, you have the following:

[SolrField("cat")]
public ICollection<string> Categories { get; set; }

Is it possible to also do something like the following? This is more like how my NHibernate objects look and I want to take advantage of the NHibernate integration.

[SolrField("cat")]
public ICollection<Category> Categories { get; set; }

Thanks.

mausch said...

There is a pending issue to implement this, but keep in mind that Solr / Lucene index is actually a flat table. You'd be better off creating a denormalized SolrNet entity (see http://wiki.apache.org/solr/SchemaDesign).
I'm also planning a pluggable NHibernate-SolrNet mapper to make the integration more flexible.
Also, please send any further questions to the google group.

THD said...

Hi Mauricio,

I have a question about the sorting (Best Match, Name, Price, Random) in your sample web application.

I'd like to add the functionality to sort a column in ascending and descending order by clicking on the same link. Currently, when you click on a link, it just does a sort in ascending order.

Any help is appreciated.

Regards,
Thanh

mausch said...

@Thanh: when creating the link, detect the current order (asc/desc) and create the link with the opposite order if the selected sort is the one you're generating.
Also, please send any further questions to the google group.

THD said...

Thanks for the quick reply and your tip. Sure, I will post my questions in Google Code Solr in the future.

Regards,
Thanh