You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Emre ERKEK <h....@gmail.com> on 2015/08/04 10:00:26 UTC

Highlight not working when using _query_ syntax

Hi,

When I search with nested query such as :* {!complexphrase df=xml}\"olası
(kast kasıt)\"~6* ,
highlighting is working.

But, when I use this query  *_query_:"{!complexphrase df=xml}\"olası (kast
kasıt)\"~6"*
, highlighting is not working.

Finally, I want to use query like that *_query_:"{!complexphrase
df=xml}\"olası (kast kasıt)\"~6" OR _query_:"{!complexphrase
df=xml_en}\"olası (kast kasıt)\"~6"*

Any ideas?

Thanks

Re: Highlight not working when using _query_ syntax

Posted by Emre ERKEK <h....@gmail.com>.
Hi Ahmet,

I made the mistake(syntax error) ... I add to this param is your adviced
query

hl.q="olası (kast kasıt)"~6&hl.qparser=complexphrase is working.

Thanks for advice.
Emre


On Tue, Aug 4, 2015 at 3:45 PM, Emre ERKEK <h....@gmail.com> wrote:

> I wrote wrong parsed query. Correct is
>
> <str name="parsedquery">
> (+((+ComplexPhraseQuery("olası (kast kasıt)") +xml:adam)
> (+ComplexPhraseQuery("olası (kast kasıt)") +xml_en:adam)) () () () () () ()
> ())/no_coord
> </str>
>
> On Tue, Aug 4, 2015 at 3:38 PM, Emre ERKEK <h....@gmail.com> wrote:
>
>> When I changed query *_query_:"{!complexphrase df=xml}\"olası (kast
>> kasıt)\"~6 AND adam" OR _query_:"{!complexphrase df=xml_en}\"olası (kast
>> kasıt)\"~6 **AND adam**" *,
>> ' adam ' is highlighted.
>>
>> 'xml' field content : ... OLASI KAST OLASI KASTLA ADAM...
>>
>> <str name="parsedquery">
>> (+((+ComplexPhraseQuery("olası (kast kasıt)") +fullContent:adam)
>> (+ComplexPhraseQuery("olası (kast kasıt)") +fullContent_en:adam)) () () ()
>> () () () ())/no_coord
>> </str>
>>
>> On Tue, Aug 4, 2015 at 3:21 PM, Emre ERKEK <h....@gmail.com>
>> wrote:
>>
>>> Hi Ahmet,
>>>
>>> Unfortunatly, I cannot leverage hl.qparser and hl.q. I tried to queries
>>> like that:
>>>
>>> *hl.q=_query_:"{!complexphrase df=xml}\"olası (kast kasıt)\"~6" OR
>>> _query_:"{!complexphrase df=xml_en}\"olası (kast kasıt)\"~6" * is not
>>> working.
>>>
>>> *hl.q="olası (kast kasıt)"~6&hl.qparser=complexphrase  *is not working
>>> for xml_en field because default search field is xml.
>>>
>>> Actually, my main problem is searching with complexphrase query doesn't
>>> have highlighting problem on two field which is xml and xml_en.
>>>
>>> What can be equivalent this query?  *_query_:"{!complexphrase
>>> df=xml}\"olası (kast kasıt)\"~6" OR _query_:"{!complexphrase
>>> df=xml_en}\"olası (kast kasıt)\"~6"*
>>>
>>> Emre
>>>
>>> On Tue, Aug 4, 2015 at 11:32 AM, Ahmet Arslan <iorixxx@yahoo.com.invalid
>>> > wrote:
>>>
>>>> Hi Emre,
>>>>
>>>> May be you can leverage hl.qparser and hl.q ?
>>>>
>>>> Ahmet
>>>>
>>>>
>>>>
>>>> On Tuesday, August 4, 2015 11:00 AM, Emre ERKEK <h....@gmail.com>
>>>> wrote:
>>>>
>>>>
>>>>
>>>> Hi,
>>>>
>>>> When I search with nested query such as :* {!complexphrase
>>>> df=xml}\"olası
>>>> (kast kasıt)\"~6* ,
>>>> highlighting is working.
>>>>
>>>> But, when I use this query  *_query_:"{!complexphrase df=xml}\"olası
>>>> (kast
>>>> kasıt)\"~6"*
>>>> , highlighting is not working.
>>>>
>>>> Finally, I want to use query like that *_query_:"{!complexphrase
>>>> df=xml}\"olası (kast kasıt)\"~6" OR _query_:"{!complexphrase
>>>> df=xml_en}\"olası (kast kasıt)\"~6"*
>>>>
>>>> Any ideas?
>>>>
>>>> Thanks
>>>>
>>>
>>>
>>>
>>> --
>>> İyi çalışmalar,
>>> Hasan Emre ERKEK
>>>
>>>
>>
>>
>> --
>> İyi çalışmalar,
>> Hasan Emre ERKEK
>>
>>
>
>
> --
> İyi çalışmalar,
> Hasan Emre ERKEK
>
>


-- 
İyi çalışmalar,
Hasan Emre ERKEK

Re: Highlight not working when using _query_ syntax

Posted by Emre ERKEK <h....@gmail.com>.
I wrote wrong parsed query. Correct is

<str name="parsedquery">
(+((+ComplexPhraseQuery("olası (kast kasıt)") +xml:adam)
(+ComplexPhraseQuery("olası (kast kasıt)") +xml_en:adam)) () () () () () ()
())/no_coord
</str>

On Tue, Aug 4, 2015 at 3:38 PM, Emre ERKEK <h....@gmail.com> wrote:

> When I changed query *_query_:"{!complexphrase df=xml}\"olası (kast
> kasıt)\"~6 AND adam" OR _query_:"{!complexphrase df=xml_en}\"olası (kast
> kasıt)\"~6 **AND adam**" *,
> ' adam ' is highlighted.
>
> 'xml' field content : ... OLASI KAST OLASI KASTLA ADAM...
>
> <str name="parsedquery">
> (+((+ComplexPhraseQuery("olası (kast kasıt)") +fullContent:adam)
> (+ComplexPhraseQuery("olası (kast kasıt)") +fullContent_en:adam)) () () ()
> () () () ())/no_coord
> </str>
>
> On Tue, Aug 4, 2015 at 3:21 PM, Emre ERKEK <h....@gmail.com> wrote:
>
>> Hi Ahmet,
>>
>> Unfortunatly, I cannot leverage hl.qparser and hl.q. I tried to queries
>> like that:
>>
>> *hl.q=_query_:"{!complexphrase df=xml}\"olası (kast kasıt)\"~6" OR
>> _query_:"{!complexphrase df=xml_en}\"olası (kast kasıt)\"~6" * is not
>> working.
>>
>> *hl.q="olası (kast kasıt)"~6&hl.qparser=complexphrase  *is not working
>> for xml_en field because default search field is xml.
>>
>> Actually, my main problem is searching with complexphrase query doesn't
>> have highlighting problem on two field which is xml and xml_en.
>>
>> What can be equivalent this query?  *_query_:"{!complexphrase
>> df=xml}\"olası (kast kasıt)\"~6" OR _query_:"{!complexphrase
>> df=xml_en}\"olası (kast kasıt)\"~6"*
>>
>> Emre
>>
>> On Tue, Aug 4, 2015 at 11:32 AM, Ahmet Arslan <io...@yahoo.com.invalid>
>> wrote:
>>
>>> Hi Emre,
>>>
>>> May be you can leverage hl.qparser and hl.q ?
>>>
>>> Ahmet
>>>
>>>
>>>
>>> On Tuesday, August 4, 2015 11:00 AM, Emre ERKEK <h....@gmail.com>
>>> wrote:
>>>
>>>
>>>
>>> Hi,
>>>
>>> When I search with nested query such as :* {!complexphrase df=xml}\"olası
>>> (kast kasıt)\"~6* ,
>>> highlighting is working.
>>>
>>> But, when I use this query  *_query_:"{!complexphrase df=xml}\"olası
>>> (kast
>>> kasıt)\"~6"*
>>> , highlighting is not working.
>>>
>>> Finally, I want to use query like that *_query_:"{!complexphrase
>>> df=xml}\"olası (kast kasıt)\"~6" OR _query_:"{!complexphrase
>>> df=xml_en}\"olası (kast kasıt)\"~6"*
>>>
>>> Any ideas?
>>>
>>> Thanks
>>>
>>
>>
>>
>> --
>> İyi çalışmalar,
>> Hasan Emre ERKEK
>>
>>
>
>
> --
> İyi çalışmalar,
> Hasan Emre ERKEK
>
>


-- 
İyi çalışmalar,
Hasan Emre ERKEK

Re: Highlight not working when using _query_ syntax

Posted by Emre ERKEK <h....@gmail.com>.
When I changed query *_query_:"{!complexphrase df=xml}\"olası (kast
kasıt)\"~6 AND adam" OR _query_:"{!complexphrase df=xml_en}\"olası (kast
kasıt)\"~6 **AND adam**" *,
' adam ' is highlighted.

'xml' field content : ... OLASI KAST OLASI KASTLA ADAM...

<str name="parsedquery">
(+((+ComplexPhraseQuery("olası (kast kasıt)") +fullContent:adam)
(+ComplexPhraseQuery("olası (kast kasıt)") +fullContent_en:adam)) () () ()
() () () ())/no_coord
</str>

On Tue, Aug 4, 2015 at 3:21 PM, Emre ERKEK <h....@gmail.com> wrote:

> Hi Ahmet,
>
> Unfortunatly, I cannot leverage hl.qparser and hl.q. I tried to queries
> like that:
>
> *hl.q=_query_:"{!complexphrase df=xml}\"olası (kast kasıt)\"~6" OR
> _query_:"{!complexphrase df=xml_en}\"olası (kast kasıt)\"~6" * is not
> working.
>
> *hl.q="olası (kast kasıt)"~6&hl.qparser=complexphrase  *is not working
> for xml_en field because default search field is xml.
>
> Actually, my main problem is searching with complexphrase query doesn't
> have highlighting problem on two field which is xml and xml_en.
>
> What can be equivalent this query?  *_query_:"{!complexphrase
> df=xml}\"olası (kast kasıt)\"~6" OR _query_:"{!complexphrase
> df=xml_en}\"olası (kast kasıt)\"~6"*
>
> Emre
>
> On Tue, Aug 4, 2015 at 11:32 AM, Ahmet Arslan <io...@yahoo.com.invalid>
> wrote:
>
>> Hi Emre,
>>
>> May be you can leverage hl.qparser and hl.q ?
>>
>> Ahmet
>>
>>
>>
>> On Tuesday, August 4, 2015 11:00 AM, Emre ERKEK <h....@gmail.com>
>> wrote:
>>
>>
>>
>> Hi,
>>
>> When I search with nested query such as :* {!complexphrase df=xml}\"olası
>> (kast kasıt)\"~6* ,
>> highlighting is working.
>>
>> But, when I use this query  *_query_:"{!complexphrase df=xml}\"olası (kast
>> kasıt)\"~6"*
>> , highlighting is not working.
>>
>> Finally, I want to use query like that *_query_:"{!complexphrase
>> df=xml}\"olası (kast kasıt)\"~6" OR _query_:"{!complexphrase
>> df=xml_en}\"olası (kast kasıt)\"~6"*
>>
>> Any ideas?
>>
>> Thanks
>>
>
>
>
> --
> İyi çalışmalar,
> Hasan Emre ERKEK
>
>


-- 
İyi çalışmalar,
Hasan Emre ERKEK

Re: Highlight not working when using _query_ syntax

Posted by Emre ERKEK <h....@gmail.com>.
Hi Ahmet,

Unfortunatly, I cannot leverage hl.qparser and hl.q. I tried to queries
like that:

*hl.q=_query_:"{!complexphrase df=xml}\"olası (kast kasıt)\"~6" OR
_query_:"{!complexphrase df=xml_en}\"olası (kast kasıt)\"~6" * is not
working.

*hl.q="olası (kast kasıt)"~6&hl.qparser=complexphrase  *is not working for
xml_en field because default search field is xml.

Actually, my main problem is searching with complexphrase query doesn't
have highlighting problem on two field which is xml and xml_en.

What can be equivalent this query?  *_query_:"{!complexphrase
df=xml}\"olası (kast kasıt)\"~6" OR _query_:"{!complexphrase
df=xml_en}\"olası (kast kasıt)\"~6"*

Emre

On Tue, Aug 4, 2015 at 11:32 AM, Ahmet Arslan <io...@yahoo.com.invalid>
wrote:

> Hi Emre,
>
> May be you can leverage hl.qparser and hl.q ?
>
> Ahmet
>
>
>
> On Tuesday, August 4, 2015 11:00 AM, Emre ERKEK <h....@gmail.com>
> wrote:
>
>
>
> Hi,
>
> When I search with nested query such as :* {!complexphrase df=xml}\"olası
> (kast kasıt)\"~6* ,
> highlighting is working.
>
> But, when I use this query  *_query_:"{!complexphrase df=xml}\"olası (kast
> kasıt)\"~6"*
> , highlighting is not working.
>
> Finally, I want to use query like that *_query_:"{!complexphrase
> df=xml}\"olası (kast kasıt)\"~6" OR _query_:"{!complexphrase
> df=xml_en}\"olası (kast kasıt)\"~6"*
>
> Any ideas?
>
> Thanks
>



-- 
İyi çalışmalar,
Hasan Emre ERKEK

Re: Highlight not working when using _query_ syntax

Posted by Ahmet Arslan <io...@yahoo.com.INVALID>.
Hi Emre,

May be you can leverage hl.qparser and hl.q ?

Ahmet

 

On Tuesday, August 4, 2015 11:00 AM, Emre ERKEK <h....@gmail.com> wrote:



Hi,

When I search with nested query such as :* {!complexphrase df=xml}\"olası
(kast kasıt)\"~6* ,
highlighting is working.

But, when I use this query  *_query_:"{!complexphrase df=xml}\"olası (kast
kasıt)\"~6"*
, highlighting is not working.

Finally, I want to use query like that *_query_:"{!complexphrase
df=xml}\"olası (kast kasıt)\"~6" OR _query_:"{!complexphrase
df=xml_en}\"olası (kast kasıt)\"~6"*

Any ideas?

Thanks