Skip to content
This repository has been archived by the owner on Jun 2, 2021. It is now read-only.

Improve search #32

Open
Pr0teus opened this issue Jun 6, 2015 · 10 comments
Open

Improve search #32

Pr0teus opened this issue Jun 6, 2015 · 10 comments
Milestone

Comments

@Pr0teus
Copy link
Contributor

Pr0teus commented Jun 6, 2015

When we search for any string in the "Search" field (left sidebar) does not bring any results.

@jseidl
Copy link
Contributor

jseidl commented Jun 6, 2015

This works. Maybe not as everyone expects. It uses the elasticsearch query
language.

Most of the problem is that the mapping doesn't exists for plugins and such
On Jun 6, 2015 9:44 PM, "Pr0teus" notifications@github.com wrote:

When we search for any string in the "Search" field (left sidebar) does
not bring any results.


Reply to this email directly or view it on GitHub
#32.

@merces merces modified the milestone: 0.2.0 Jun 6, 2015
@turicas
Copy link
Contributor

turicas commented Jun 7, 2015

You may use ES Query DSL or Lucene query syntax. The Python's ElasticSearch API documentation may help also.
To test, you can open an IPython session and try it interactively:

from aleph.datastore import es
es.search(...)
es.lucene_search(...)

@jseidl
Copy link
Contributor

jseidl commented Jun 7, 2015

Exactly. For full text search the mapping must be implemented correctly. I
think we need documentation of the search function and also an whitelist
filter on the input.

Merces, since you're good with regex you could try to make this whitelist
rule ;)
On Jun 7, 2015 4:40 PM, "Álvaro Justen" notifications@github.com wrote:

You may use ES Query DSL
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-query.html
or Lucene query syntax
https://lucene.apache.org/core/2_9_4/queryparsersyntax.html. The Python's
ElasticSearch API documentation
https://elasticsearch-py.readthedocs.org/en/master/api.html#elasticsearch
may help also.
To test, you can open an IPython session and try it interactively:

from aleph.datastore import es
es.search(...)
es.lucene_search(...)


Reply to this email directly or view it on GitHub
#32 (comment).

@danilovazb
Copy link

I'll work with this issue.

@slayerlab
Copy link

me too.

@loganbr
Copy link

loganbr commented Jun 7, 2015

\0/

@merces merces changed the title The search function isn't working Improve search Jun 8, 2015
@merces
Copy link
Owner

merces commented Jun 8, 2015

I renamed the issue. Thank you all for working on this.

@danilovazb
Copy link

Whats's guys, all right?

I was editing at the settings.py file on the server made available at the lecture about Aleph, these lines are what?

ELASTICSEARCH_URI = "127.0.0.1:9200"
ELASTICSEARCH_INDEX = 'samples'
ELASTICSEARCH_TRACE = False

Aleph does not run on port 5000?
He's with URI on port 9200, which is the door?

ELASTICSEARCH_TRACE, because it is False?

Tks ;)

@jseidl
Copy link
Contributor

jseidl commented Jun 11, 2015

5000 is the Web Interface port. 9200 is elasticsearch which is the
datastore. The aleph parsing daemon doesn't runs in any port
On Jun 11, 2015 4:21 PM, "Danilo Vaz" notifications@github.com wrote:

Whats's guys, all right?

I was editing at the settings.py file on the server made available at the
lecture about Aleph, these lines are what?

ELASTICSEARCH_URI = "127.0.0.1:9200"
ELASTICSEARCH_INDEX = 'samples'
ELASTICSEARCH_TRACE = False

Aleph does not run on port 5000?
He's with URI on port 9200, which is the door?

ELASTICSEARCH_TRACE, because it is False?

Tks ;)


Reply to this email directly or view it on GitHub
#32 (comment).

@danilovazb
Copy link

Hmmm.....okay...

Tks @jseidl

Someone managed to do some kind of research?

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

No branches or pull requests

7 participants