lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emre ERKEK <h.emre.er...@gmail.com>
Subject Re: Highlight not working when using _query_ syntax
Date Tue, 04 Aug 2015 14:05:39 GMT
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.emre.erkek@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.emre.erkek@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.emre.erkek@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.emre.erkek@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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message