Posts

Showing posts from August, 2015

ElasticSearch multiple strings in multiple fields search

I was working on an ElasticSearch(ES) POC to store millions of database entries to ES and search for multiple strings in multiple fields for all these entries. Let me explain the problem in depth - we use different defect tracking tools such as Rational CharmNT, JIRA and so on, to log defects. In defects we update the exception trace to identify the logs. For example - a stack may look like Exception in thread "main" java . lang . NullPointerException at com . mycompany . myproject . Book . getTitle ( Book . java : 16 ) at com . mycompany . myproject . Author . getBookTitles ( Author . java : 25 )   Similarly another stack may look like Exception in thread "main" java . lang . NullPointerException at com . mycompany . myproject . Course . getSchedule ( Course . java : 162 ) at com . mycompany . myproject . CourseDao . getCourses ( CourseDao. java : 50 )   So, we when a tester sees a NullPointerException he will log the trace t...