Commit Graph
13 Commits
Author SHA1 Message Date
Shi Jinghai 1192f858e0 Fixed: Update Apache Solr/Lucene to release 6.2.1
OFBIZ-8316

Updated Solr from 6.2.1 to 6.5.1 and the point fields generated by Lucene are ok now for Solr component.
The 'original UI' link is commented in admin.html and the relative files under solr/webapp/solr/tpl are all removed. 

Thanks: Cao Pengan for the patch and Jacques, Michael for the comments and reviews.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1794771 13f79535-47bb-0310-9956-ffa450edef68
2017-05-11 00:10:12 +00:00
Jacques Le Roux 232bf736f3 Fixed: Could not obtain Lock on lucene index Lock
(OFBIZ-7265)

In my last commit (r1792257) I did not use the right location.
It's now in runtime\indexes\solr which is the obviously right place in OFBiz!

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1794132 13f79535-47bb-0310-9956-ffa450edef68
2017-05-06 10:53:37 +00:00
Jacques Le Roux 17587f85ff Fixed: Could not obtain Lock on lucene index Lock
(OFBIZ-7265)

No functional change, the path should start at home

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1792257 13f79535-47bb-0310-9956-ffa450edef68
2017-04-22 05:06:46 +00:00
Jacques Le Roux e83ec3b8d4 Fixed: Could not obtain Lock on lucene index Lock
(OFBIZ-7265)

Problem:
I found this message in error.log
xer_default_products 	
DocumentIndexer 	
E 	
Could not obtain Lock on lucene index Lock held by this virtual machine: 
C:\projectASF-Mars\ofbiz\runtime\indexes\products\write.lock

Investigation:
I am able to reproduce this on my dev machine. 
Here is the steps to regenerate it:

1. Go to https://localhost:8443/content/control/AdminIndex
2. Click on Index Products button.

Solution:
As per my analysis, the reason of error is write lock on lucene indexes 
(created by lucene indexing process in lucene component) by Solr. 
Have a look on specialpurpose/solr/home/solrdefault/conf/solrconfig.xml line:
 <dataDir>${solr.data.dir:runtime/indexes}</dataDir>
Should point to:
 <dataDir>${solr.data.dir:specialpurpose/solr/home/solrdefault/runtime/indexes/}
 </dataDir>

Solr currently pointing to lucene indexes and creating a lock on it. 
We can't index products anymore using lucene indexing as it has lock from Solr.
So currently all the search results we can see on Solr Search
https://localhost:8443/solr/#/solrdefault/query 
is lucene indexed results.
We have not created any indexes using Solr itself. Thanks


Thanks: Amardeep Singh Jhajj who did all the work

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1791625 13f79535-47bb-0310-9956-ffa450edef68
2017-04-16 19:44:50 +00:00
Jacques Le Roux 5dc7ce9548 No functional changes
completes r1781219 by putting svn:eol-style=native to all file types declared 
in [auto-props] section of the svn config files.css

Actually this is only a 1st pass, it was too complicated to do it for  
all file types at once only concerned here
*.java;*.bsh;*.groovy;*.jsp;*.tld;*.ftl;*.js;*.sql;*.c;*.cpp;*.h;*.txt;*.sgml;
*.properties;*.xml;.classpath;.project;*.sld;*.gml;*.xsl;*.xsd
*.html;*.htm;*.css;*.md;README;NOTICE;LICENSE;rc.ofbiz.*;*.less;*.dsp;*.dsw

Most files should not be concerned by this change, but it's impossible to do
it one by one.

There are also changes in files with have mixed EOLs; because this has no sense
when using native which automatically resolves this issue

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1781731 13f79535-47bb-0310-9956-ffa450edef68
2017-02-05 11:09:59 +00:00
Jacques Le Roux fc3e1db4f6 No functional changes
At http://markmail.org/message/ffmyw773p65fndey I wrote:

I'd like to follow the suggestion I made in the last message of the linked 
thread.
In other words, use
http://subversion.apache.org/docs/release-notes/1.8.html#repos-dictated-config
http://blogs.collab.net/subversion/the-road-to-repository-dictated-configuration-day-2-autoprops
Then this problem would be over. No longer need to check from time to time that
concerned files, have svn:eol-style=native property set
This imply that all OFBiz users use svn > 1.7, but we can inform them, et voilà

Then at markmail.org/message/h3q2yvj4db544ro7 I wrote:

Actually, since we get new committers now and then and their are able to create
new files I have a warning every 6 months which says "Check Java 
files, have all svn:eol-style=native" (I totally forgot that because I assume
the machine knows it and warns me ;))
I could extend that to all files (at least the most prominent types), I'll
see...

This does what the last sentence said for Groovy, XML and few new Birt 
Java files.

I'll see if I can implement the svn 1.8 repos-dictated-config ASAP!




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1781219 13f79535-47bb-0310-9956-ffa450edef68
2017-02-01 10:58:46 +00:00
Shi Jinghai 5af8988f7a Fixed: Update Apache Solr/Lucene to release 6.2.1
(OFBIZ-8316)

Change LongPoint and DoublePoint fields to String field to make solr work in trunk version, and I'll change them back when updating to new release of Solr.

Thanks: Jacques Le Roux for reporting the point fields problem.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1780133 13f79535-47bb-0310-9956-ffa450edef68
2017-01-25 03:09:48 +00:00
Jacques Le Roux 96d15f033e Reverts r1730873 which itself reverted r1730320 because tests did not pass. But just 4 minutes before my commit (at least I received it 4 mins before) Jinghai fixed the issue at r1730790
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1730921 13f79535-47bb-0310-9956-ffa450edef68
2016-02-17 19:30:54 +00:00
Jacques Le Roux fbf3349d3b Reverts r1730320 because tests don't pass and I need to have the tests clean to move ahead.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1730873 13f79535-47bb-0310-9956-ffa450edef68
2016-02-17 16:57:08 +00:00
Shi Jinghai 4b6fd34e46 OFBIZ-6715 Solr rebuild problem.
Changes are:
1. Comment out solr eecas.xml as it's duplicated to ecas in eecas_product.xml.
2. Add default-value="solrdefault" to indexName of addToSolr service.
3. Replace some tabs with spaces.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1730790 13f79535-47bb-0310-9956-ffa450edef68
2016-02-17 07:32:08 +00:00
Shi Jinghai 43d25fe7e7 Refs OFBIZ-6715 Solr rebuild problem
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1730320 13f79535-47bb-0310-9956-ffa450edef68
2016-02-14 11:59:59 +00:00
Shi Jinghai fa16b1e420 OFBIZ-6610 Upgrade Solr and Lucene librairies to version 5
1. Remove the specialpurpose/solr/home/solrdefault/runtime.
2. Remove src attribute in solr jars in .classpath.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1707047 13f79535-47bb-0310-9956-ffa450edef68
2015-10-06 13:03:14 +00:00
Shi Jinghai 1405615b1a OFBIZ-6610 Upgrade Solr and Lucene librairies to version 5
1. Upgrade the solr/lucene component to the latest 5.3.1.
2. Angular related js and html files are removed.
3. The jquery-1.7.2.min.js is removed as it's not used in solr.
4. Change specialpurpose/solr/conf to specialpurpose/solr/home.
5. Move specialpurpose/solr/solrdefault to specialpurpose/solr/home/solrdefault.
6. The files under specialpurpose/solr/home/solrdefault are all from solr-5.3.1 package/server/solr/configsets/sample_techproducts_configs/, the solrconfig.xml is configured: <dataDir>${solr.data.dir:runtime/indexes}</dataDir>


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1707042 13f79535-47bb-0310-9956-ffa450edef68
2015-10-06 12:48:53 +00:00