From solr-user-return-149156-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Thu Aug 8 21:56:35 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id EA6F0180642 for ; Thu, 8 Aug 2019 23:56:34 +0200 (CEST) Received: (qmail 55347 invoked by uid 500); 8 Aug 2019 21:56:31 -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 55328 invoked by uid 99); 8 Aug 2019 21:56:31 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Aug 2019 21:56:31 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id CACDBC0AC1 for ; Thu, 8 Aug 2019 21:56:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.801 X-Spam-Level: * X-Spam-Status: No, score=1.801 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-he-de.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id C2kr40VfwCSH for ; Thu, 8 Aug 2019 21:56:28 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::72a; helo=mail-qk1-x72a.google.com; envelope-from=maria.muslea@gmail.com; receiver= Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id 164D87DD38 for ; Thu, 8 Aug 2019 21:56:28 +0000 (UTC) Received: by mail-qk1-x72a.google.com with SMTP id d15so70098929qkl.4 for ; Thu, 08 Aug 2019 14:56:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=A01ICktEOWePA9VnrYUUMTeBO4icLiddRdwodsD5cEk=; b=AtFDr8LvDizyl7az5TCzlh6QQBgzsvDK8AzEkdPh2ABWLiKLM+dqBxF56Ji9nD9nbr yuh4bjK+6NNzhdxXAz2+BFJ2K2McUM8MNLC43jpS0sxraqU9Sl++Y0mceweyH6TBurQS ztj8cCun9kyl9E6V5mWpIqOEfgYK5C3EOIkxOd3ar4aWTOB4AfquRUx8UWiDKGU11dot He1eMrRA7cOo1G5sqbV9Py7w2YydKvoyBYx6XF8xA0n0wZNolC8qmMar+nah9/FDVo3c OH3jLDX7dQQK5MkeqxP7OosCKzlTAvs4FiJYI0rhBWgDCh1IG2NuKJCDOhN2ie3Oz8SW 5DJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=A01ICktEOWePA9VnrYUUMTeBO4icLiddRdwodsD5cEk=; b=iw693M1KiC7RTuTOiMVgfPBJsLaQTlx12rnl+O8VnBQnyXhLSim87ZbkrkbQYbkJqr z0YqZs+18hVPfB5WVPqPOhBdtqx788vvQ8o4lqxsmCTtNFcJLjs55kA1n7QjSTmJEd4U Lk2XlrGsHS9rb5xtzdJiSIIogDC8xEFlDMmX8T2/wwuIXdd4A2ECudfP6Gr3WucHnlqW H6pfvG1VSZFsRw0UOBqrf43lXIQELTGDeT16PsO19ZTzEB8dS6LKjkXRZIM2lLYALhIq BPDPOYZEJaAKQ2/6NSuTdRPQI9MsTNWRpUMOXf7LxKsw8H8prGlvEoTeW6ef3UXb2ifF sisw== X-Gm-Message-State: APjAAAWHwQkAq0hW3flmJ/idbzDt1NhxzVPVe9H1d8ROtAhmaYMCZTf5 NxGQ63wOs4y0gS+j4AV3YJ/13re4wbO0TFIm03gYtFHJ X-Google-Smtp-Source: APXvYqz+MFaISNKqWsGmP6SSUnztvoj7ATqtiC5PTD/Hl2yZErwM3EI6NLB2iIyGh+Da4xsuJVPGc2u7bQcUHuKpVjg= X-Received: by 2002:a05:620a:1659:: with SMTP id c25mr976825qko.306.1565301386596; Thu, 08 Aug 2019 14:56:26 -0700 (PDT) MIME-Version: 1.0 References: <1ebed8cd24a241fdb5977277784a9d00@tiaa.org> In-Reply-To: <1ebed8cd24a241fdb5977277784a9d00@tiaa.org> From: Maria Muslea Date: Thu, 8 Aug 2019 14:56:15 -0700 Message-ID: Subject: Re: modify query response plugin To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary="0000000000001d565c058fa22197" --0000000000001d565c058fa22197 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I am not able to use the highlighter because in my example the text contains "LAX", and the search is on "airport" on a different field than the text field. I was able to use SearchComponent to add my own highlighting section. Thank you, Maria On Thu, Aug 8, 2019 at 2:20 PM Moyer, Brett wrote: > Highlight? What about using the Highlighter? > https://lucene.apache.org/solr/guide/6_6/highlighting.html > > Brett Moyer > Manager, Sr. Technical Lead | TFS Technology > Public Production Support > Digital Search & Discovery > > 8625 Andrew Carnegie Blvd | 4th floor > Charlotte, NC 28263 > Tel: 704.988.4508 > Fax: 704.988.4907 > bmoyer@tiaa.org > > > -----Original Message----- > From: Maria Muslea > Sent: Thursday, August 8, 2019 1:28 PM > To: solr-user@lucene.apache.org > Subject: Re: modify query response plugin > > Thank you for your response. I believe that the Tagger is used for NER, > which is different than what I am trying to do. > It is also available only with Solr 7 and I would need this to work with > version 6.5.0. > > I am trying to manipulate the data that I already have in the response, > and I can't find a good example of a plugin that does something similar, = so > I can see how I can access the response and construct a new one. > > Your help is greatly appreciated. > > Thank you, > Maria > > On Tue, Aug 6, 2019 at 3:19 PM Erik Hatcher > wrote: > > > I think you=E2=80=99re looking for the Solr Tagger, described here: > > https://lucidworks.com/post/solr-tagger-improving-relevancy/ > > > > > On Aug 6, 2019, at 16:04, Maria Muslea wrote= : > > > > > > Hi, > > > > > > I am trying to implement a plugin that will modify my query > > > response. For example, I would like to execute a query that will > return something like: > > > > > > {... > > > "description":"flights at LAX", > > > "highlight":"airport;11;3" > > > ...} > > > This is information that I have in my document, so I can return it. > > > > > > Now, I would like the plugin to intercept the result, do some > > > processing > > on > > > it, and return something like: > > > > > > {... > > > "description":"flights at LAX", > > > "highlight":{ > > > "concept":"airport", > > > "description":"flights at LAX" > > > ...} > > > > > > I looked at some RequestHandler implementations, but I can't find > > > any sample code that would help me with this. Would this type of > > > plugin be handled by a RequestHandler? Could you maybe point me to a > > > sample plugin that does something similar? > > > > > > I would really appreciate your help. > > > > > > Thank you, > > > Maria > > > ************************************************************************* > 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 > ************************************************************************* > --0000000000001d565c058fa22197--