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
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 wrote: > Hi Emre, > > May be you can leverage hl.qparser and hl.q ? > > Ahmet > > > > On Tuesday, August 4, 2015 11:00 AM, Emre ERKEK > 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
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... (+((+ComplexPhraseQuery("olası (kast kasıt)") +fullContent:adam) (+ComplexPhraseQuery("olası (kast kasıt)") +fullContent_en:adam)) () () () () () () ())/no_coord On Tue, Aug 4, 2015 at 3:21 PM, Emre ERKEK 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 > wrote: > >> Hi Emre, >> >> May be you can leverage hl.qparser and hl.q ? >> >> Ahmet >> >> >> >> On Tuesday, August 4, 2015 11:00 AM, Emre ERKEK >> 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
I wrote wrong parsed query. Correct is (+((+ComplexPhraseQuery("olası (kast kasıt)") +xml:adam) (+ComplexPhraseQuery("olası (kast kasıt)") +xml_en:adam)) () () () () () () ())/no_coord On Tue, Aug 4, 2015 at 3:38 PM, Emre ERKEK 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... > > > (+((+ComplexPhraseQuery("olası (kast kasıt)") +fullContent:adam) > (+ComplexPhraseQuery("olası (kast kasıt)") +fullContent_en:adam)) () () () > () () () ())/no_coord > > > On Tue, Aug 4, 2015 at 3:21 PM, Emre ERKEK 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 >> wrote: >> >>> Hi Emre, >>> >>> May be you can leverage hl.qparser and hl.q ? >>> >>> Ahmet >>> >>> >>> >>> On Tuesday, August 4, 2015 11:00 AM, Emre ERKEK >>> 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
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 wrote: > I wrote wrong parsed query. Correct is > > > (+((+ComplexPhraseQuery("olası (kast kasıt)") +xml:adam) > (+ComplexPhraseQuery("olası (kast kasıt)") +xml_en:adam)) () () () () () () > ())/no_coord > > > On Tue, Aug 4, 2015 at 3:38 PM, Emre ERKEK 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... >> >> >> (+((+ComplexPhraseQuery("olası (kast kasıt)") +fullContent:adam) >> (+ComplexPhraseQuery("olası (kast kasıt)") +fullContent_en:adam)) () () () >> () () () ())/no_coord >> >> >> On Tue, Aug 4, 2015 at 3:21 PM, Emre ERKEK >> 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 >> > wrote: >>> >>>> Hi Emre, >>>> >>>> May be you can leverage hl.qparser and hl.q ? >>>> >>>> Ahmet >>>> >>>> >>>> >>>> On Tuesday, August 4, 2015 11:00 AM, Emre ERKEK >>>> 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
Proximity Search with Grouping
Hi All, Can I use proximity search with grouping like this "A B (C D)"~19 ? Thanks, Emre
Re: Proximity Search with Grouping
Thanks for answer. On Fri, Dec 5, 2014 at 2:01 PM, Allison, Timothy B. wrote: > With updated link (sorry!): > https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-ComplexPhraseQueryParser > > -Original Message----- > From: Emre ERKEK [mailto:h.emre.er...@gmail.com] > Sent: Friday, December 05, 2014 2:42 AM > To: solr > Subject: Proximity Search with Grouping > > Hi All, > > Can I use proximity search with grouping like this "A B (C D)"~19 ? > > Thanks, > Emre > -- İyi çalışmalar, Hasan Emre ERKEK