Re: Wild-card query behavior

2019-10-09 Thread Mikhail Khludnev
Well it remind regular awkward parsing issues. Try to experiment with
={!join to=...from=... v='field:12*'} or ={!join to=... from=...
v=$qq}=field:12*
No more questions to ask.

On Wed, Oct 9, 2019 at 4:39 PM Paresh  wrote:

> E.g. In query, join with wild-card query using parenthesis I get error -
>
> "error-class","org.apache.solr.common.SolrException",
>   "root-error-class","org.apache.solr.parser.ParseException"],
> "msg":"org.apache.solr.search.SyntaxError: Cannot parse
> 'solrField:(12*': Encountered \"\" at line 1, column 57.\r\nWas
> expecting one of:\r\n ...\r\n ...\r\n ...\r\n
> \"+\" ...\r\n\"-\" ...\r\n ...\r\n\"(\" ...\r\n
> \")\" ...\r\n\"*\" ...\r\n\"^\" ...\r\n ...\r\n
>  ...\r\n ...\r\n ...\r\n
> 
> ...\r\n ...\r\n\"[\" ...\r\n\"{\" ...\r\n
>  ...\r\n\"filter(\" ...\r\n ...\r\n",
> "code":400}}
>
> When using the same query with parenthesis in filter query (fq), I get the
> expected results.
>
>
>
>
> --
> Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html
>


-- 
Sincerely yours
Mikhail Khludnev


Re: Wild-card query behavior

2019-10-09 Thread Paresh
E.g. In query, join with wild-card query using parenthesis I get error -

"error-class","org.apache.solr.common.SolrException",
  "root-error-class","org.apache.solr.parser.ParseException"],
"msg":"org.apache.solr.search.SyntaxError: Cannot parse
'solrField:(12*': Encountered \"\" at line 1, column 57.\r\nWas
expecting one of:\r\n ...\r\n ...\r\n ...\r\n   
\"+\" ...\r\n\"-\" ...\r\n ...\r\n\"(\" ...\r\n   
\")\" ...\r\n\"*\" ...\r\n\"^\" ...\r\n ...\r\n   
 ...\r\n ...\r\n ...\r\n
...\r\n ...\r\n\"[\" ...\r\n\"{\" ...\r\n   
 ...\r\n\"filter(\" ...\r\n ...\r\n",
"code":400}}

When using the same query with parenthesis in filter query (fq), I get the
expected results.




--
Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Re: Wild-card query behavior

2019-10-09 Thread Mikhail Khludnev
Hello, Paresh.
Please examine debugQuery output, otherwise 'doesn't work' is vague.

On Wed, Oct 9, 2019 at 8:31 AM Paresh  wrote:

> Hi All,
>
> I am trying wild-card query with query, filter query with and without !join
> and finding it difficult to understand the SOLR behavior.
>
> (-) wild-card like 12* in query: field:12* works well
> (-) wild-card like 12* in query with {!join to=... from=...}field:12* -->
> works well
> (-) wild-card like (12*) in query with {!join to=... from=...}field:(12*)
> --> doesn't work
> (-) wild-card like (12*) in filter query with ={!join to=...
> from=...}field:12* --> doesn't work
> (-) wild-card like (12*) in filter query with ={!join to=...
> from=...}field:"12*" --> doesn't work
> (-) wild-card like (12*) in filter query with ={!join to=...
> from=...}field:(12*) --> works well
>
> Why wild-card query does not work with {!join}?
>
> Regards,
> Paresh
>
>
>
> --
> Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html
>


-- 
Sincerely yours
Mikhail Khludnev


Wild-card query behavior

2019-10-08 Thread Paresh
Hi All,

I am trying wild-card query with query, filter query with and without !join
and finding it difficult to understand the SOLR behavior.

(-) wild-card like 12* in query: field:12* works well
(-) wild-card like 12* in query with {!join to=... from=...}field:12* -->
works well
(-) wild-card like (12*) in query with {!join to=... from=...}field:(12*)
--> doesn't work 
(-) wild-card like (12*) in filter query with ={!join to=...
from=...}field:12* --> doesn't work
(-) wild-card like (12*) in filter query with ={!join to=...
from=...}field:"12*" --> doesn't work
(-) wild-card like (12*) in filter query with ={!join to=...
from=...}field:(12*) --> works well

Why wild-card query does not work with {!join}?

Regards,
Paresh



--
Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html