KocsisDaniel/liferay-plugins — pull request #3 by lipusz (2012-07-11 12:55:16+00:00)
Title: [TECHNICAL-SUPPORT] LPS-28406 Modify Solr-web-plugin to store and use localized fields similarly to Lucene

Hello Dani,

Here are some notes relating my modifications
1. SolrIndexWriterImpl.getSolrInputDocument(): the pattern comes from the LuceneIndexWriterImpl._getLuceneDocument() method

2. SolrIndexSearcherImpl.translateQuery(): I've found that no sense to set these attributes when highlighting is not enabled. Based on this doc http://wiki.apache.org/solr/HighlightingParameters#hl and solr-solrj-3.5.0-sources.jar, the default is false and Solr will remove the unnecessary parameters.

3. SolrIndexSearcherImpl.subset(): when there are result docs but scoring is not enabled, the previous code caused NPE when the hits.setScores() was invoked. I've modified it to have enough and no null values in the array in all cases. (The value is not relevant.)

4. schema.xml: More information at here: http://issues.liferay.com/browse/LPS-28406?focusedCommentId=205533&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-205533

Regards,
Tibor