-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Rick,
On 3/6/18 6:39 PM, Rick Leir wrote: > The first thing that came to mind is that you are planning not to > have an app in front of Solr. Without a web app, you will need to > trust whoever can get access to Solr. Maybe you are on an > intranet. Nope, we have a web application between the user and Solr. But I would rather not parse the user's query string and re-write it so that the search field-names are canonicalized. Thanks, - -chris > On March 6, 2018 2:42:26 AM EST, "Emir Arnautović" > <[email protected]> wrote: >> Hi, I did not try it, but the first thing that came to my mind is >> to use edismax’s ability to define field aliases, something like >> f.f1.fq=field_1. Note that it is not recommended to have field >> name starting with number so not sure if it will work with “1”. >> >> HTH, Emir -- Monitoring - Log Management - Alerting - Anomaly >> Detection Solr & Elasticsearch Consulting Support Training - >> http://sematext.com/ >> >> >> >>> On 5 Mar 2018, at 17:51, Christopher Schultz >> <[email protected]> wrote: >>> > All, > > I'd like for users to be able to search a field by multiple names > without performing a "copy-field" when analyzing a document. Is > that possible? Whenever I search for "solr alias field" I get > results >>> about > how to re-name fields in the results. > > Here's what I'd like to do. Let's say I have a document: > > { id: 1234, field_1: valueA, field_2: valueB, field_3: valueC } > > I'd like users to be able to find this document using any of the > following queries: > > field_1:valueA f1:valueA 1:valueA > > I just want the query parser to say "oh, 'f1' is an alias for > 'field_1'" and substitute that when performing the search. Is that > possible? > > -chris > > -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAltXTxwACgkQHPApP6U8 pFjHaA/9HYIjEges8puLMM8S+hwoKigLFzrGstbyWlrj5xHQsBnaeQbNCAv8TSO5 /Yx911UbJEc00etpJSiXVUbMWbwvzt1QmjKZADaUtUQpKJ3i/eORnFOu3/FXrojX LJFWNxasO/gpFMqz6ADqdsfjKLDiqDQHg6letg0QVQ4d3k3diD3rahJaoJYg67/e OeEOHqK9LTY+v9HGdLUzLQ87C2FQScsvnTX6vmCU7HLXcbJFOly/KXamL8gulM5g +sVQbMSB1l+jkU3TOkWZ2ovJJzB49qVto2ZxcrT682GHyHq8sZIX6nsFSRZQl7Af rCe0Esgdk0SPCf3NIcZugEKmlawqWulzDhheyFVDwc5kQhMmi9CFU+/JbQcT4yeM Q72TRCdESnH8W9jWDa9+WuBT7PW+BPBogBXhTT2JgptqPxA2iUPl1M9HdjqiZd4K qdt65YZrpomAQpcDBa4Rzl0yG7UXOuu5A3Ms6nYFyOB0lHdsQqtSVLVSgw1hw3g9 3tnRlyBi1FrrSpwDew8oNobMGVMigb3sxvjAO3lv6g6DH8YEcIyJE197xFVd5091 m+OQSpgO3iZtr7YxruDlM/fvofOLNevQS4LcdhXZoZ4Txi6cAi12svxId8w4yycq SEOfyXZvd9S0IOdC4UZVfJ+8Ome6Iy1BV+WHsdO8SWKoHW+m7cE= =x/55 -----END PGP SIGNATURE-----
