Regexp Query Not working


(deep saxena) #1

{
"query": {
"regexp": {
"first.namehttp://www.google.com/url?q=http%3A%2F%2Ffirst.name&sa=D&sntz=1&usg=AFQjCNEC43YiZFrdxW8r9fyMwpkaS5sveQ":
"s*",
"flags": "EMPTY"
}
}
}

There is the indexed data

  1. Summon in the statement
  2. sussy, lussy like names in the elasticsearch server.

What is the exact JSON object that we can query???
Any mistakes and suggestion.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.


(Alexander Reelsen) #2

Hey,

check your regex, you are most likely searching for "s.*"?

--Alex

On Sun, Nov 24, 2013 at 8:39 AM, deep saxena sandy100ster@gmail.com wrote:

{
"query": {
"regexp": {
"first.namehttp://www.google.com/url?q=http%3A%2F%2Ffirst.name&sa=D&sntz=1&usg=AFQjCNEC43YiZFrdxW8r9fyMwpkaS5sveQ":
"s*",
"flags": "EMPTY"
}
}
}

There is the indexed data

  1. Summon in the statement
  2. sussy, lussy like names in the elasticsearch server.

What is the exact JSON object that we can query???
Any mistakes and suggestion.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.


(deep saxena) #3

The string should return s followed by any character like sussy, summon any
thing with s and followed by nay number of charcter.
It returns like this :-
{

  • took: 19
  • timed_out: false
  • _shards: {
    • total: 5
    • successful: 5
    • failed: 0
      }
  • hits: {
    • total: 0
    • max_score: null
    • hits: [ ]
      }

}

Am I doing anything wrong here ???

On Sunday, 24 November 2013 13:14:56 UTC+5:30, Alexander Reelsen wrote:

Hey,

check your regex, you are most likely searching for "s.*"?

--Alex

On Sun, Nov 24, 2013 at 8:39 AM, deep saxena <sandy1...@gmail.com<javascript:>

wrote:

{
"query": {
"regexp": {
"first.namehttp://www.google.com/url?q=http%3A%2F%2Ffirst.name&sa=D&sntz=1&usg=AFQjCNEC43YiZFrdxW8r9fyMwpkaS5sveQ":
"s*",
"flags": "EMPTY"
}
}
}

There is the indexed data

  1. Summon in the statement
  2. sussy, lussy like names in the elasticsearch server.

What is the exact JSON object that we can query???
Any mistakes and suggestion.

--
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 elasticsearc...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.


(David Pilato) #4

I'd suggest a full curl recreation here. See http://www.elasticsearch.org/help

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

Le 24 nov. 2013 à 08:56, deep saxena sandy100ster@gmail.com a écrit :

The string should return s followed by any character like sussy, summon any thing with s and followed by nay number of charcter.
It returns like this :-
{
took: 19
timed_out: false
_shards: {
total: 5
successful: 5
failed: 0
}
hits: {
total: 0
max_score: null
hits: [ ]
}
}

Am I doing anything wrong here ???

On Sunday, 24 November 2013 13:14:56 UTC+5:30, Alexander Reelsen wrote:

Hey,

check your regex, you are most likely searching for "s.*"?

--Alex

On Sun, Nov 24, 2013 at 8:39 AM, deep saxena sandy1...@gmail.com wrote:

{
"query": {
"regexp": {
"first.name": "s*",
"flags": "EMPTY"
}
}
}

There is the indexed data

  1. Summon in the statement
  2. sussy, lussy like names in the elasticsearch server.

What is the exact JSON object that we can query???
Any mistakes and suggestion.

--
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 elasticsearc...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.


(Alexander Reelsen) #5

Hey,

this is exactly what the regex "s." does, as opposed to "s", which only
matches for an arbitrary amount of 's' letters. So "ss" or "sss" would
match, but not "sus"...

--Alex

On Sun, Nov 24, 2013 at 8:56 AM, deep saxena sandy100ster@gmail.com wrote:

The string should return s followed by any character like sussy, summon
any thing with s and followed by nay number of charcter.
It returns like this :-
{

  • took: 19
  • timed_out: false
  • _shards: {
    • total: 5
    • successful: 5
    • failed: 0
      }
  • hits: {
    • total: 0
    • max_score: null
    • hits: [ ]
      }

}

Am I doing anything wrong here ???

On Sunday, 24 November 2013 13:14:56 UTC+5:30, Alexander Reelsen wrote:

Hey,

check your regex, you are most likely searching for "s.*"?

--Alex

On Sun, Nov 24, 2013 at 8:39 AM, deep saxena sandy1...@gmail.com wrote:

{
"query": {
"regexp": {
"first.namehttp://www.google.com/url?q=http%3A%2F%2Ffirst.name&sa=D&sntz=1&usg=AFQjCNEC43YiZFrdxW8r9fyMwpkaS5sveQ":
"s*",
"flags": "EMPTY"
}
}
}

There is the indexed data

  1. Summon in the statement
  2. sussy, lussy like names in the elasticsearch server.

What is the exact JSON object that we can query???
Any mistakes and suggestion.

--
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 elasticsearc...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.


(deep saxena) #6

Thanx got the clear idea

On Sunday, 24 November 2013 14:14:54 UTC+5:30, Alexander Reelsen wrote:

Hey,

this is exactly what the regex "s." does, as opposed to "s", which only
matches for an arbitrary amount of 's' letters. So "ss" or "sss" would
match, but not "sus"...

--Alex

On Sun, Nov 24, 2013 at 8:56 AM, deep saxena <sandy1...@gmail.com<javascript:>

wrote:

The string should return s followed by any character like sussy, summon
any thing with s and followed by nay number of charcter.
It returns like this :-
{

  • took: 19
  • timed_out: false
  • _shards: {
    • total: 5
    • successful: 5
    • failed: 0
      }
  • hits: {
    • total: 0
    • max_score: null
    • hits: [ ]
      }

}

Am I doing anything wrong here ???

On Sunday, 24 November 2013 13:14:56 UTC+5:30, Alexander Reelsen wrote:

Hey,

check your regex, you are most likely searching for "s.*"?

--Alex

On Sun, Nov 24, 2013 at 8:39 AM, deep saxena sandy1...@gmail.comwrote:

{
"query": {
"regexp": {
"first.namehttp://www.google.com/url?q=http%3A%2F%2Ffirst.name&sa=D&sntz=1&usg=AFQjCNEC43YiZFrdxW8r9fyMwpkaS5sveQ":
"s*",
"flags": "EMPTY"
}
}
}

There is the indexed data

  1. Summon in the statement
  2. sussy, lussy like names in the elasticsearch server.

What is the exact JSON object that we can query???
Any mistakes and suggestion.

--
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 elasticsearc...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
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 elasticsearc...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.


(deep saxena) #7

Does elasticsearch does not support java regular expression? if yes could
you please give some example or link, if not then why??

On Monday, 25 November 2013 12:50:13 UTC+5:30, deep saxena wrote:

Thanx got the clear idea

On Sunday, 24 November 2013 14:14:54 UTC+5:30, Alexander Reelsen wrote:

Hey,

this is exactly what the regex "s." does, as opposed to "s", which only
matches for an arbitrary amount of 's' letters. So "ss" or "sss" would
match, but not "sus"...

--Alex

On Sun, Nov 24, 2013 at 8:56 AM, deep saxena sandy1...@gmail.com wrote:

The string should return s followed by any character like sussy, summon
any thing with s and followed by nay number of charcter.
It returns like this :-
{

  • took: 19
  • timed_out: false
  • _shards: {
    • total: 5
    • successful: 5
    • failed: 0
      }
  • hits: {
    • total: 0
    • max_score: null
    • hits: [ ]
      }

}

Am I doing anything wrong here ???

On Sunday, 24 November 2013 13:14:56 UTC+5:30, Alexander Reelsen wrote:

Hey,

check your regex, you are most likely searching for "s.*"?

--Alex

On Sun, Nov 24, 2013 at 8:39 AM, deep saxena sandy1...@gmail.comwrote:

{
"query": {
"regexp": {
"first.namehttp://www.google.com/url?q=http%3A%2F%2Ffirst.name&sa=D&sntz=1&usg=AFQjCNEC43YiZFrdxW8r9fyMwpkaS5sveQ":
"s*",
"flags": "EMPTY"
}
}
}

There is the indexed data

  1. Summon in the statement
  2. sussy, lussy like names in the elasticsearch server.

What is the exact JSON object that we can query???
Any mistakes and suggestion.

--
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 elasticsearc...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
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 elasticsearc...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.


(deep saxena) #8

Does elasticsearch does not support java regular expression? if yes could
you please give some example or link, if not then why??

On Sunday, 24 November 2013 13:09:16 UTC+5:30, deep saxena wrote:

{
"query": {
"regexp": {
"first.namehttp://www.google.com/url?q=http%3A%2F%2Ffirst.name&sa=D&sntz=1&usg=AFQjCNEC43YiZFrdxW8r9fyMwpkaS5sveQ":
"s*",
"flags": "EMPTY"
}
}
}

There is the indexed data

  1. Summon in the statement
  2. sussy, lussy like names in the elasticsearch server.

What is the exact JSON object that we can query???
Any mistakes and suggestion.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #9