aleph icon indicating copy to clipboard operation
aleph copied to clipboard

Improve search

Open Pr0teus opened this issue 9 years ago • 10 comments

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

Pr0teus avatar Jun 06 '15 18:06 Pr0teus

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" [email protected] 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 https://github.com/trendmicro/aleph/issues/32.

jseidl avatar Jun 06 '15 18:06 jseidl

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(...)

turicas avatar Jun 07 '15 13:06 turicas

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" [email protected] 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 https://github.com/trendmicro/aleph/issues/32#issuecomment-109758079.

jseidl avatar Jun 07 '15 13:06 jseidl

I'll work with this issue.

danilovazb avatar Jun 07 '15 13:06 danilovazb

me too.

slayerlab avatar Jun 07 '15 13:06 slayerlab

\0/

loganbr avatar Jun 07 '15 14:06 loganbr

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

merces avatar Jun 08 '15 14:06 merces

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 ;)

danilovazb avatar Jun 11 '15 13:06 danilovazb

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" [email protected] 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 https://github.com/trendmicro/aleph/issues/32#issuecomment-111133371.

jseidl avatar Jun 11 '15 13:06 jseidl

Hmmm.....okay...

Tks @jseidl

Someone managed to do some kind of research?

danilovazb avatar Jun 11 '15 13:06 danilovazb