Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with Index #58

Open
noorbakerally opened this issue Oct 30, 2015 · 3 comments
Open

Error with Index #58

noorbakerally opened this issue Oct 30, 2015 · 3 comments

Comments

@noorbakerally
Copy link

This is an error i'm receiving when going on the route /dataset/lov/vocabs

/root/Applications/lov/app/controllers/search.js:585
total_results: parsed.total,
^
TypeError: Cannot read property 'total' of undefined
at ElasticSearchCall. (/root/Applications/lov/app/controllers/search.js:585:30)
at ElasticSearchCall.emit (events.js:95:17)
at IncomingMessage. (/root/Applications/lov/node_modules/elasticsearchclient/lib/elasticsearchclient/calls/elasticSearchCall.js:66:22)
at IncomingMessage.emit (events.js:117:20)
at _stream_readable.js:944:16
at process._tickDomainCallback (node.js:486:13)
[nodemon] app crashed - waiting for file changes before starting...

I tried to debug a little, by adding console.log(data) on line 577, i got the following:
{"error":"IndexMissingException[[lov] missing]","status":404}:

@noorbakerally noorbakerally changed the title Error with sourcecode Error with Index Oct 30, 2015
@pyvandenbussche
Copy link
Owner

Hi,

LOV uses elasticsearch for listing and search trough vocabularies, agents, vocabulary elements. Have you run the script to build the full text index in elasticsearch? All scripts are located in https://github.com/pyvandenbussche/lovScripts project. After compiling this project you will have to run create-index script that will create the index in elasticsearch and then run index-lov that will populate the index.

@noorbakerally
Copy link
Author

Hi, i'm sorry for troubling and thank you for your help, I'm going to write a wiki to document the process and also I'm working on a docker image which I will make public,

the scripts i have run is good, now I'm not getting the error, but i'm getting the same error when going on the url http://domainname.com/dataset/lov/terms

/root/Applications/lov/app/controllers/search.js:434
total_results: parsed.total,
^
TypeError: Cannot read property 'total' of undefined
at ElasticSearchCall. (/root/Applications/lov/app/controllers/search.js:434:30)
at ElasticSearchCall.emit (events.js:95:17)
at IncomingMessage. (/root/Applications/lov/node_modules/elasticsearchclient/lib/elasticsearchclient/calls/elasticSearchCall.js:66:22)
at IncomingMessage.emit (events.js:117:20)
at _stream_readable.js:944:16
at process._tickDomainCallback (node.js:486:13)
[nodemon] app crashed - waiting for file changes before starting...

@gatemezing
Copy link

@noorbakerally Any update on this issue? TIA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants