Source Code Index using ES


(Sivakumar) #1

Hi ,

We have indexed 1000+ source files using elastic search .

While searching any code/string we can get proper result .

But we have 2 major problem .

1 ) Code Snippet/ fragments - In result page will be shown only based on
character instead of lines ( result page would be fixed line numbers like 5
line for every snippet )

2 ) We cant get line numbers - we have added line number while indexing
source file - but we cant get it .

Is it possible to fix this issue using elastic search ?

Please let us know your suggestion .

Thanks,
Sivakumar.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/01028f2f-159a-45f2-838c-d93fa7ca42a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Indexing source code using ES and interest in the line number
Indexing source code using ES and ingest attachment plugin
(David Pilato) #2

About line numbers, you could either do it on a client level or index lines if you want to retrieve lines.

Just like indexing a book. If you need to give as a result a page (think page number), it means that you need to index pages not the book!

My 2 cents.

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 3 juin 2014 à 08:43, Sivakumar 85siva@gmail.com a écrit :

Hi ,

We have indexed 1000+ source files using elastic search .

While searching any code/string we can get proper result .

But we have 2 major problem .

1 ) Code Snippet/ fragments - In result page will be shown only based on character instead of lines ( result page would be fixed line numbers like 5 line for every snippet )

2 ) We cant get line numbers - we have added line number while indexing source file - but we cant get it .

Is it possible to fix this issue using elastic search ?

Please let us know your suggestion .

Thanks,
Sivakumar.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/01028f2f-159a-45f2-838c-d93fa7ca42a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/5829A584-4FB2-4517-B607-94184D5D757E%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.


(system) #3