yawik / Solr

This YAWIK module enables solr search for job openings.
http://jobs.yawik.org
MIT License
1 stars 2 forks source link

Added prePersist listener for indexing active Job entities #11

Closed fedys closed 6 years ago

fedys commented 6 years ago

Sanitize a link value (possible Solr schema issue)

10

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-1.08%) to 91.182% when pulling 84961ddb9772f60f4086eb6d354b1d8c20e83842 on fedys:#10 into efed69a936b0ee2a1aec2569a4bd8ee6689da94e on yawik:develop.

cbleek commented 6 years ago

I've checked out the branch

root@gastro24:/var/www/YAWIK/module/Solr# git describe
v0.3-47-g84961dd
root@gastro24:/var/www/YAWIK/module/Solr# git branch
  develop
* fedys-#10

I've removed all imported jobs from mongo

switched to db gastro24
> db.jobs.remove({organization:ObjectId("59e4b53e7bb2b553412f9be9")});
WriteResult({ "nRemoved" : 142 })
> db.simpleimport.crawler.update({"_id" : ObjectId("59e4bc7d7bb2b5ea468b4567")},{$unset:{"items":""}});
WriteResult({ "nMatched" : 1, "nUpserted" : 0, "nModified" : 1 })

Then I've restarted the import

root@gastro24:/var/www/YAWIK# ./bin/console simpleimport import
The crawler with the name (ID) "coop (59dcc1f27bb2b56a5e8b4567)" finished with the following result:
Inserted = 0, Updated = 0, Deleted = 0, Invalid = 0
The crawler with the name (ID) "sv-group (59e4bc7d7bb2b5ea468b4567)" finished with the following result:
Inserted = 142, Updated = 0, Deleted = 0, Invalid = 0

Jobs are reinserted into mongo with status "active". But they are not pushed into the solr index.

cbleek commented 6 years ago

oh, I've forgotten to update the SimpleImport Module...... Let me test again:-)

fedys commented 6 years ago

@cbleek I am sorry, I could let you know about it.

fedys commented 6 years ago

It should work after the update.

cbleek commented 6 years ago

It works perfectly:-)

fedys commented 6 years ago

Great

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.2%) to 92.416% when pulling 466ed7644f61e1bf5243db55cc1495d2c1989eed on fedys:#10 into efed69a936b0ee2a1aec2569a4bd8ee6689da94e on yawik:develop.