Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4DAF817D57 for ; Wed, 1 Apr 2015 18:25:57 +0000 (UTC) Received: (qmail 88730 invoked by uid 500); 1 Apr 2015 18:25:53 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 88656 invoked by uid 500); 1 Apr 2015 18:25:53 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 88627 invoked by uid 99); 1 Apr 2015 18:25:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2015 18:25:53 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,LOTS_OF_MONEY,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [212.27.42.3] (HELO smtp3-g21.free.fr) (212.27.42.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2015 18:25:46 +0000 Received: from [192.168.0.50] (unknown [88.172.8.152]) (Authenticated sender: bmannina) by smtp3-g21.free.fr (Postfix) with ESMTPA id 30A57A6350 for ; Wed, 1 Apr 2015 20:22:40 +0200 (CEST) Message-ID: <551C37D4.2010406@free.fr> Date: Wed, 01 Apr 2015 20:24:20 +0200 From: Bruno Mannina User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: solr-user@lucene.apache.org Subject: Re: Solr 3.6, Highlight and multi words? References: <55184F6E.9020201@free.fr> <551BD0F5.9020701@free.fr> In-Reply-To: Content-Type: multipart/alternative; boundary="------------020207030009040809090107" X-Virus-Checked: Checked by ClamAV on apache.org --------------020207030009040809090107 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Dear Charles, Thanks for your answer, please find below my answers. ok it works if I use "aben" as field in my query as you say in Answer 1. it doesn't work if I use "ab" may be because "ab" field is a copyField for abfr, aben, abit, abpt Concerning the 2., yes you have right it's not and but AND I have this result: <em>Bicycle</em> frame comprises holder, particularly for water bottle, where holder is connected #CMT# #/CMT# The<em>bicycle</em> frame (7) comprises a holder (1), particularly for a water bottle . The holder is connected with the<em>bicycle</em> frame by a screw (5), where a mounting element has a compensation section which is made of an elastic material, particularly a<em>plastic</em> material. The compensation section So my last question is why I haven't instead having colored ? How can I tell to solr to use the colored ? Thanks a lot, Bruno Le 01/04/2015 17:15, Reitzel, Charles a écrit : > Haven't used Solr 3.x in a long time. But with 4.10.x, I haven't had any trouble with multiple terms. I'd look at a few things. > > 1. Do you have a typo in your query? Shouldn't it be q=aben:(plastic and bicycle)? > ^^ > 2. Try removing the word "and" from the query. There may be some interaction with a stop word filter. If you want a phrase query, wrap it in quotes. > > 3. Also, be sure that the query and indexing analyzers for the aben field are compatible with each other. > > -----Original Message----- > From: Bruno Mannina [mailto:bmannina@free.fr] > Sent: Wednesday, April 01, 2015 7:05 AM > To: solr-user@lucene.apache.org > Subject: Re: Solr 3.6, Highlight and multi words? > > Sorry to disturb you with the renew but nobody use or have problem with multi-terms and highlight ? > > regards, > > Le 29/03/2015 21:15, Bruno Mannina a écrit : >> Dear Solr User, >> >> I try to work with highlight, it works well but only if I have only >> one keyword in my query?! >> If my request is plastic AND bicycle then only plastic is highlight. >> >> my request is: >> >> ...../select/?q=ab%3A%28plastic+and+bicycle%29&version=2.2&start=0&row >> s=10&indent=on&hl=true&hl.fl=tien,aben&fl=pn&f.aben.hl.snippets=5 >> >> >> Could you help me please to understand ? I read doc, google, without >> success... >> so I post here... >> >> my result is: >> >> .... >> >> >> >> (EP2423092A1) #CMT# #/CMT# The bicycle pedal has a pedal >> body (10) made from<em>plastic</em> material >> , particularly for touring bike. #CMT#ADVANTAGE : #/CMT# >> The bicycle pedal has a pedal body made >> from<em>plastic</em> >> >> >> >> >> between<em>plastic</em> tapes 3 and 3 having >> two heat fusion layers, and the two<em>plastic</em> tapes >> 3 and 3 are stuck >> >> >> >> >> elements. A connecting element is formed as a hinge, a >> flexible foil or a flexible<em>plastic</em> part. >> #CMT#USE >> >> >> >> >> A bicycle handlebar grip includes an inner fiber layer and >> an outer<em>plastic</em> layer. Thus, the fiber >> handlebar grip, while the<em>plastic</em> >> layer is soft and has an adjustable thickness to provide a >> comfortable >> sensation to a user. In addition, >> the<em>plastic</em> layer includes a holding portion >> coated on the outer surface >> layer to enhance the combination strength between the >> fiber layer and the<em>plastic</em> layer and to >> enhance >> >> > > ************************************************************************* > This e-mail may contain confidential or privileged information. > If you are not the intended recipient, please notify the sender immediately and then delete it. > > TIAA-CREF > ************************************************************************* --------------020207030009040809090107--