Re: Analyzing URLs for regexp queries

2014-04-16 Thread Honza Král
Hi Matt, that is curious, could you please try to enably trace logging for elasticsearch-py and look what exactly is being sent? My guess is that there is something that needs to be escaped in python though what that might be alludes me for the time being. to tenable the logging just do: import

Re: Analyzing URLs for regexp queries

2014-04-15 Thread Luiz Guilherme Pais dos Santos
Hi Matt, If you mark your field as not_analyzed: { mappings: { type1: { properties: { url: { type: string, index: not_analyzed } } } } } You could use a regexp query: POST

Re: Analyzing URLs for regexp queries

2014-04-15 Thread mcburton
Luiz, thanks for responding! I had forgotten to mention I tried not_analyzed as well. The analyzer it turns out wasn't my problem. I had 2 problems. First, the ES/Lucene regexp query/filter doesn't support \d for indicating digits. So I had to replace them with the [0-9] character class. Once I