takezoe / solr-scala-client

Solr Client for Scala
Apache License 2.0
91 stars 43 forks source link

.facetFields() must be called, or getResultAsMap throws exception #1

Closed bendilts closed 12 years ago

bendilts commented 12 years ago

See title. Here's my query code: val result = solrClient .query("content:%term% description:%term% tags:%term%") .fields("id") .facetFields() .sortBy("created", Order.desc) .getResultAsMap(Map("term" -> term))

If I remove .facetFields(), then getResultAsMap throws a null-pointer exception.

takezoe commented 12 years ago

This problem is fixed in #2.