Type: Regression Bug
Affects Version/s: 6.2.10 EE GA1
Fix Version/s: 6.2.10 EE GA1
Environment:Tomcat 7.0.42 + MySQL 5.5. Portal ee-6.2.10 GIT ID: 858f902a6e06bb738bb92b43466be5d67931ecf0.
Plugins ee-6.2.10 GIT ID: a22d0197b8fdb6936e3736764d22ace447143456.
Steps to reproduce:
- Download apache-solr-3.5.0.zip from 'http://archive.apache.org/dist/lucene/solr/3.5.0/'
- Unzip apache-solr-3.5.0.zip anywhere
- Navigate to apache-solr-3.5.0/example in terminal and type 'java -jar start.jar'
- After the server has started up, shut it down
- Start Liferay and deploy the Solr3 plugin
- After it's started, shut it down
- Navigate in folder to /tomcat-7.0.42/webapps/solr3-web/WEB-INF/classes/META-INF
- Open solr-spring.xml
- Change 'http://localhost:8080/solr' to 'http://localhost:8983/solr'
- The changed line should look like this: <constructor-arg type="java.lang.String" value="http://localhost:8983/solr/" />
- Save and close solr-spring.xml
- Navigate in folder to /tomcat-7.0.42/webapps/solr3-web/WEB-INF/conf
- Copy the schema.xml file
- Paste the file in apache-solr-3.5.0/example/solr/conf to replace the existing schema.xml file
- Start the Solr3 server in apache-solr-3.5.0/example (java -jar start.jar)
- Start liferay
- There will be a lot of outut on the Solr3 console (means it's working)
- Navigate to Control Panel > Server Administration and reindex the search indexes
- Navigate to Control Panel > Users > Users and Organisations
- Add a user (test1)
- Go back to Liferay and add these portlets: Search, Blogs, Portal Directory
- Add a blogs post with something unique
- Click Categorization and add tags
- After adding the blog post, search for it in the Search portlet
- Assert that the search returns your blog and the tags appear
- Go back and search for one of the blog tags
- Search for the created user (test1)
- Go to 'http://localhost:8983/solr/admin/schema.jsp'
- In the left sidebar, go to Fields > TITLE
- Assert that the words in your blog title show up in 'Top Terms'
- Navigate to Fields > SCREENNAME
- Change the number of Top Terms to the number shown next to 'Distinct:' which is above Top Terms
- Assert that the created user (test1) is on the list
- Navigate to Fields > ASSETTAGNAMES
- Assert that your blog tags appear on Top Terms
The search for the created user and blog tags should return a result and no console errors should be seen in the liferay terminal.
Nothing is returned for the searches and the liferay terminal returns errors:
- No errors should be seen at all in the Solr3 or Solr4 terminals.
- In order to test this for Solr4, follow the steps in the related ticket,
LPS-42242in order to start up Liferay with the Solr4 server.
- To assert that the Solr4 server is indexing information, go to these links and press the Load Term Info button:
• http://localhost:8983/solr/#/collection1/schema-browser?field=assetTagNames (Blog tags)
• http://localhost:8983/solr/#/collection1/schema-browser?field=title (Blog Entry title)
• http://localhost:8983/solr/#/collection1/schema-browser?field=screenName (created User)