RE: Schema API specifying different analysers for query and index

2021-03-02 Thread ufuk yılmaz
It worked! Thanks Mr. Rafalovitch. I just removed “type”: “query”.. keys from the json, and used indexAnalyzer and queryAnalyzer in place of analyzer json node. Sent from Mail for Windows 10 From: Alexandre Rafalovitch Sent: 03 March 2021 01:19 To: solr-user Subject: Re: Schema API specifying

Re: Schema API specifying different analysers for query and index

2021-03-02 Thread Alexandre Rafalovitch
"analyzers": [{ > "type": "query", > "tokenizer": { > "class": "solr.StandardTokenizerFactory" > }, > "filters": [ > { > "class": "solr.LowerCaseFilterFactory" > } > ] > },{ > "type": "index", > "tokenizer": { > "class": "solr.KeywordTokenizerFactory" > }, > "filters": [ > { > "class": "solr.LowerCaseFilterFactory" > } > ] > }] > } > } > > "errorMessages":["Plugin init failure for [schema.xml] > "msg":"error processing commands",... > > How can I specify different analyzers for query and index type when using > schema api? > > Sent from Mail for Windows 10 >

Schema API specifying different analysers for query and index

2021-03-02 Thread ufuk yılmaz
{ "class": "solr.LowerCaseFilterFactory" } ] },{ "type": "index", "tokenizer": { "class": "solr.KeywordTokenizerFactory" }, "filters": [ { "class": "solr.LowerCaseFilterFactory" } ] }] } } "errorMessages":["Plugin init failure for [schema.xml] "msg":"error processing commands",... How can I specify different analyzers for query and index type when using schema api? Sent from Mail for Windows 10

Re: Solr Schema API seems broken to me after 8.2.0

2020-09-09 Thread jeanc...@gmail.com
s my first time writing here. I > >> hope I don't do anything wrong. > >> I went to create the "bug" ticket and saw it would be a good idea to > first > >> talk to some of you via IRC (didn't work for me or I did something wrong > >> after 20

Re: Solr Schema API seems broken to me after 8.2.0

2020-09-08 Thread Jörn Franke
dy, >> >> First of all, I wanted to say that this is my first time writing here. I >> hope I don't do anything wrong. >> I went to create the "bug" ticket and saw it would be a good idea to first >> talk to some of you via IRC (didn't work for m

Re: Solr Schema API seems broken to me after 8.2.0

2020-09-08 Thread jeanc...@gmail.com
> after 20 years of not using it..) > > I'm currently using Solr 8.1.1 in production and I use the Schema API to > create the necessary fields before starting to index my new data. (Reason, > the managed-schema would be big for me to take care of and I decided to > automate this pro

Solr Schema API seems broken to me after 8.2.0

2020-08-28 Thread jeanc...@gmail.com
0 years of not using it..) I'm currently using Solr 8.1.1 in production and I use the Schema API to create the necessary fields before starting to index my new data. (Reason, the managed-schema would be big for me to take care of and I decided to automate this process by using the REST API). I

Re: 404 response from Schema API

2020-05-15 Thread Mark H. Wood
On Thu, May 14, 2020 at 02:47:57PM -0600, Shawn Heisey wrote: > On 5/14/2020 1:13 PM, Mark H. Wood wrote: > > On Fri, Apr 17, 2020 at 10:11:40AM -0600, Shawn Heisey wrote: > >> On 4/16/2020 10:07 AM, Mark H. Wood wrote: > >>> I need to ask Solr 4.10 for the name of the unique key field of a > >>> s

Re: 404 response from Schema API

2020-05-14 Thread Shawn Heisey
On 5/14/2020 1:13 PM, Mark H. Wood wrote: On Fri, Apr 17, 2020 at 10:11:40AM -0600, Shawn Heisey wrote: On 4/16/2020 10:07 AM, Mark H. Wood wrote: I need to ask Solr 4.10 for the name of the unique key field of a schema. So far, no matter what I've done, Solr is returning a 404. The Luke Req

Re: 404 response from Schema API

2020-05-14 Thread Mark H. Wood
On Thu, May 14, 2020 at 03:13:07PM -0400, Mark H. Wood wrote: > Anyway, I'll be reading up on how to upgrade to 5. (Hopefully not > farther, just yet -- changes between, I think, 5 and 6 mean I'd have > to spend a week reloading 10 years worth of data. For now I don't > want to go any farther tha

Re: 404 response from Schema API

2020-05-14 Thread Mark H. Wood
: > > > >curl 'https://toolshed.wood.net:8443/isw6_3/solr/statistics/schema' > > > > We normally use the ClassicIndexSchemaFactory. I tried switching to > > ManagedIndexSchemaFactory but it made no difference. Nothing is > > logged for the fail

Re: 404 response from Schema API

2020-04-17 Thread Shawn Heisey
difference. Nothing is logged for the failed requests. From what I can see, the schema API handler was introduced in version 5.0. The SchemaHandler class exists in the released javadoc for the 5.0 version, but not the 4.10 version. You'll need a newer version of Solr. Thanks, Shawn

Re: 404 response from Schema API

2020-04-16 Thread Mark H. Wood
On Thu, Apr 16, 2020 at 02:00:06PM -0400, Erick Erickson wrote: > Assuming isw6_3 is your collection name, you have > “solr” and “isw6_3” reversed in the URL. No. Solr's context is '/isw6_3/solr' and the core is 'statistics'. > Should be something like: > https://toolshed.wood.net:8443/solr/isw6

Re: 404 response from Schema API

2020-04-16 Thread Erick Erickson
Assuming isw6_3 is your collection name, you have “solr” and “isw6_3” reversed in the URL. Should be something like: https://toolshed.wood.net:8443/solr/isw6_3/schema/uniquekey If that’s not the case you need to mention your collection. But in either case your collection name comes after /solr/.

404 response from Schema API

2020-04-16 Thread Mark H. Wood
I need to ask Solr 4.10 for the name of the unique key field of a schema. So far, no matter what I've done, Solr is returning a 404. This works: curl 'https://toolshed.wood.net:8443/isw6_3/solr/statistics/select' This gets a 404: curl 'https://toolshed.wood.net:8443/isw6_3/solr/statistics/

Schema API Version 2 - 7.6.0

2019-05-22 Thread Joe Obernberger
Hi - according to the documentation here: https://lucene.apache.org/solr/guide/7_6/schema-api.html The V2 API is located at api/cores/collection/schema However the documentation here: https://lucene.apache.org/solr/guide/7_6/v2-api.html has it at api/c/collection/schema I believe the later is

Re: schema-api: modifying schema in xml format

2018-04-18 Thread Arturas Mazeika
Hi Steve, it is reasonable that schema api understand the commands only JSON. Great that you'll update the ref guide. Thanks for taking care of it. Nice of you :-) Cheers, Arturas On Wed, Apr 18, 2018 at 3:27 PM, Steve Rowe wrote: > Hi Arturas, > > The Schema API only understan

Re: schema-api: modifying schema in xml format

2018-04-18 Thread Steve Rowe
Hi Arturas, The Schema API only understands commands in JSON. I looked through the ref guide page, and I’m surprised that this isn’t stated directly; I’ll try to fix that. -- Steve www.lucidworks.com > On Apr 18, 2018, at 4:12 AM, Arturas Mazeika wrote: > > Hi solr-users, &

schema-api: modifying schema in xml format

2018-04-18 Thread Arturas Mazeika
Hi solr-users, is it possible to modify the managed schema using schema api and submit the commands in XML format? I am able to add a data type using: curl -X POST -H 'Content-type:application/json' --data-binary '{ "add-field-type": { "name":&quo

Re: Defining a phonetic analyzer and searcher via the schema API

2018-03-12 Thread Erick Erickson
regularly pull it from ZK and put it in some VCS system >> ;) > > Actually, I have the script that builds the schema in VCS, so it's > roughly the same. > > As for the schema modifications... did I get those right? > > Thanks, > - -chris > >> On Mon, Mar 12, 2018

Re: Defining a phonetic analyzer and searcher via the schema API

2018-03-12 Thread Christopher Schultz
> > But as long as you don't mix-and-match hand-editing with using the > schema API you can hand edit it freely. You're then in charge of > pushing it to ZK and reloading your collections that use it > yourself however. No Zookeeper (yet), but I suspect I'll end up

Re: Defining a phonetic analyzer and searcher via the schema API

2018-03-12 Thread Walter Underwood
raged": > https://lucene.apache.org/solr/guide/6_6/schema-api.html. > > But as long as you don't mix-and-match hand-editing with using the > schema API you can hand edit it freely. You're then in charge of > pushing it to ZK and reloading your collections that use i

Re: Defining a phonetic analyzer and searcher via the schema API

2018-03-12 Thread Erick Erickson
bq: which you aren't supposed to edit directly. Well, kind of. Here's why it's "discouraged": https://lucene.apache.org/solr/guide/6_6/schema-api.html. But as long as you don't mix-and-match hand-editing with using the schema API you can hand edit it freely. You&#

Defining a phonetic analyzer and searcher via the schema API

2018-03-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, I'd like to add a new synthesized field that uses a phonetic analyzer such as Beider-Morse. I'm using Solr 7.2. When I request the current schema via the schema API, I get a list of existing fields, dynamic fields, and analyzer

Re: Replacing the entire schema using schema API

2018-01-05 Thread Erick Erickson
just doing it iteratively through > the API. > > Regards, > André > > > 2018-01-05 15:05 GMT+01:00 Shawn Heisey : > > > On 1/5/2018 6:51 AM, André Widhani wrote: > > > >> I know I can retrieve the entire schema using Schema API and I can also > >> u

Re: Replacing the entire schema using schema API

2018-01-05 Thread André Widhani
5 GMT+01:00 Shawn Heisey : > On 1/5/2018 6:51 AM, André Widhani wrote: > >> I know I can retrieve the entire schema using Schema API and I can also >> use >> it to manipulate the schema by adding fields etc. >> >> I don't see any way to post an entire schema

Re: Replacing the entire schema using schema API

2018-01-05 Thread Shawn Heisey
On 1/5/2018 6:51 AM, André Widhani wrote: I know I can retrieve the entire schema using Schema API and I can also use it to manipulate the schema by adding fields etc. I don't see any way to post an entire schema file back to the Schema API though ... this is what most REST APIs offer

Replacing the entire schema using schema API

2018-01-05 Thread André Widhani
Hi, I know I can retrieve the entire schema using Schema API and I can also use it to manipulate the schema by adding fields etc. I don't see any way to post an entire schema file back to the Schema API though ... this is what most REST APIs offer: You retrieve an object, modify it and send

Re: Does the schema api support xml requests?

2017-11-28 Thread Steve Rowe
Hi, The schema api does not support XML requests, and there are currently no plans I’m aware of to add support. -- Steve www.lucidworks.com > On Nov 28, 2017, at 8:23 AM, startrekfan wrote: > > Hey > > Does the schema api supports xml requests? I tried to post a xml formatt

Does the schema api support xml requests?

2017-11-28 Thread startrekfan
Hey Does the schema api supports xml requests? I tried to post a xml formatted "add-field" but got an parser exception. Is there no xml support? Is it planned to add xml support within the next few months? Thanks

Re: Schema API: Modify Unique Key

2017-03-28 Thread nabil Kouici
as unique key (uniqueness is OK) and do this kind of update. Regards,Nabil.  De : Shawn Heisey À : solr-user@lucene.apache.org Envoyé le : Lundi 27 mars 2017 17h00 Objet : Re: Schema API: Modify Unique Key On 3/27/2017 7:05 AM, nabil Kouici wrote: > We're going to use Sol

Re: Schema API: Modify Unique Key

2017-03-27 Thread Shawn Heisey
On 3/27/2017 7:05 AM, nabil Kouici wrote: > We're going to use Solr in our organization (under test) and we want > to set the primary key through schema API, which is not allowed today. > Is this function planned to be implemented in Solr? If yes, do you > have any idea in which

Re: Schema API: Modify Unique Key

2017-03-27 Thread Steve Rowe
27, 2017, at 9:05 AM, nabil Kouici wrote: > > Hi All, > > > > We're going to use Solr in our organization (under test) and we want to set > the primary key through schema API, which is not allowed today. Is this > function planned to be implemented in Solr? If

Schema API: Modify Unique Key

2017-03-27 Thread nabil Kouici
Hi All, We're going to use Solr in our organization (under test) and we want to set the primary key through schema API, which is not allowed today. Is this function planned to be implemented in Solr? If yes, do you have any idea in which version? Regards,Nabil.   

Re: Schema API

2016-04-30 Thread Hendrik Haddorp
Looks like I ran into the same as was discussed here: http://grokbase.com/t/lucene/solr-user/15c4nr1j48/solrcloud-1-server-1-configset-multiple-collections-multiple-schemas Would be nice if that would be changed in the future as it would make these setups much easier. On 29/04/16 20:07, Hendrik H

Schema API

2016-04-29 Thread Hendrik Haddorp
Hi, I have a Solr Cloud 6 setup with a managed schema. It seems like when I create multiple collections from the same config set that they still share the same schema. That was rather unexpected, as in the REST and SolrJ API I do specify a collection when doing the schema change. Looking into what

Re: Schema API, change the defaultoperator

2015-12-11 Thread Shawn Heisey
On 12/11/2015 8:02 AM, Yago Riveiro wrote: > I uploaded a schema.xml manualy with the defaultoperator configuration and > it's working. > > My problem is that my legacy application is huge and I can't go to all places > to add the q.op parameter. > > The solrconfig.xml option should be an optio

Re: Schema API, change the defaultoperator

2015-12-11 Thread Yago Riveiro
t handlers works with POST http calls? On Fri, Dec 11, 2015 at 2:26 PM, Shawn Heisey wrote: > On 12/11/2015 4:23 AM, Yago Riveiro wrote: >> How can I change the defaultoperator parameter through the schema API? > The default operator and default field settings in the schema have been

Re: Schema API, change the defaultoperator

2015-12-11 Thread Shawn Heisey
On 12/11/2015 4:23 AM, Yago Riveiro wrote: > How can I change the defaultoperator parameter through the schema API? The default operator and default field settings in the schema have been deprecated for quite some time, so I would imagine that you can't change them with the schema API

Schema API, change the defaultoperator

2015-12-11 Thread Yago Riveiro
Hi, How can I change the defaultoperator parameter through the schema API? Thanks. - Best regards -- View this message in context: http://lucene.472066.n3.nabble.com/Schema-API-change-the-defaultoperator-tp4244857.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: A defect in Schema API with Add a New Copy Field Rule?

2015-05-07 Thread Steven White
eve > > > On May 6, 2015, at 6:44 PM, Steven White wrote: > > > > Hi Everyone, > > > > I am using the Schema API to add a new copy field per: > > > https://cwiki.apache.org/confluence/display/solr/Schema+API#SchemaAPI-AddaNewCopyFieldRule > > > >

Re: A defect in Schema API with Add a New Copy Field Rule?

2015-05-07 Thread Steve Rowe
> On May 6, 2015, at 8:25 PM, Yonik Seeley wrote: > > On Wed, May 6, 2015 at 8:10 PM, Steve Rowe wrote: >> It’s by design that you can copyField the same source/dest multiple times - >> according to Yonik (not sure where this was discussed), this capability has >> been used in the past to eff

Re: A defect in Schema API with Add a New Copy Field Rule?

2015-05-06 Thread Yonik Seeley
On Wed, May 6, 2015 at 8:10 PM, Steve Rowe wrote: > It’s by design that you can copyField the same source/dest multiple times - > according to Yonik (not sure where this was discussed), this capability has > been used in the past to effectively boost terms in the source field. Yep, used to be r

Re: A defect in Schema API with Add a New Copy Field Rule?

2015-05-06 Thread Steve Rowe
are designed to fail if there are any existing dependencies, while the replace-* commands will maintain the dependencies if they exist. Steve > On May 6, 2015, at 6:44 PM, Steven White wrote: > > Hi Everyone, > > I am using the Schema API to add a new copy fie

A defect in Schema API with Add a New Copy Field Rule?

2015-05-06 Thread Steven White
Hi Everyone, I am using the Schema API to add a new copy field per: https://cwiki.apache.org/confluence/display/solr/Schema+API#SchemaAPI-AddaNewCopyFieldRule Unlike the other "Add" APIs, this one will not fail if you add an existing copy field object. In fact, after when I call th

Re: Schema API: add-field-type

2015-05-05 Thread Steve Rowe
is means the response of "fieldtypes" includes "fields" and > "dynamicfields" as syntactic-sugar to let me know of the relationship this > field-type has or is there more to it? It’s FYI: this is the full list of fields and dynamic fields that use the given

Schema API: add-field-type

2015-04-29 Thread Steven White
pes" includes "fields" and "dynamicfields" as syntactic-sugar to let me know of the relationship this field-type has or is there more to it? The reason why I care about this question is because I'm using Solr's Schema API (see: https://cwiki.apache.org/conflue

Re: Modify Schema - Schema API

2014-09-10 Thread Joseph Obernberger
Wow - that's really cool! Thank you! -Joe On Wed, Sep 10, 2014 at 12:29 PM, Anshum Gupta wrote: > You don't need to bring down the shards/collections, instead here's what > you can do: > * Retain the filename ("managed_schema", if you didn't change the default > resource name). > * Edit the fi

Re: Modify Schema - Schema API

2014-09-10 Thread Anshum Gupta
You don't need to bring down the shards/collections, instead here's what you can do: * Retain the filename ("managed_schema", if you didn't change the default resource name). * Edit the file locally * Upload it to replace the current zk file. * Reload the collection(s). * Reindex Here's another th

Re: Modify Schema - Schema API

2014-09-10 Thread Joseph Obernberger
Thank you - yes that was my question. I should have stated that it was for SolrCloud and hence a managed schema. Could I bring down the shards, edit the managed schema on zookeeper, fire the shards back up and re-index? -Joe On Wed, Sep 10, 2014 at 11:50 AM, Anshum Gupta wrote: > Hi Joseph, >

Re: Modify Schema - Schema API

2014-09-10 Thread Anshum Gupta
Hi Joseph, It isn't supported by an exiting REST API (if that was your question) but you can always edit the schema manually (if it isn't managed), upload the new schema and reload the collections (or cores in case of non-SolrCloud mode). Do remember that changing the field type might require you

Modify Schema - Schema API

2014-09-10 Thread Joseph Obernberger
In addition to adding new fields to the schema, is there a way to modify an existing field? If I created a field called userID as a long, but decided later that it should be a string? Thank you! -Joe

Re: Schema API synchronization question

2014-09-03 Thread Steve Rowe
te: >> >>> Hello everybody, >>> >>> from reading the documentation it is not entirely clear what the >>> synchronization behavior of Solr's schema API is. We are seeing some >>> reliability issues in a multi-machine SolrCloud setup. Grante

Re: Schema API synchronization question

2014-09-02 Thread Matthias Broecheler
ing the documentation it is not entirely clear what the > > synchronization behavior of Solr's schema API is. We are seeing some > > reliability issues in a multi-machine SolrCloud setup. Granted, being new > > we might be doing something wrong, but at this point I am confused

Re: Schema API synchronization question

2014-08-30 Thread Erick Erickson
it is not entirely clear what the > synchronization behavior of Solr's schema API is. We are seeing some > reliability issues in a multi-machine SolrCloud setup. Granted, being new > we might be doing something wrong, but at this point I am confused as to > what the expected behavior ou

Schema API synchronization question

2014-08-30 Thread Matthias Broecheler
Hello everybody, from reading the documentation it is not entirely clear what the synchronization behavior of Solr's schema API is. We are seeing some reliability issues in a multi-machine SolrCloud setup. Granted, being new we might be doing something wrong, but at this point I am confused

Re: [Schema API] EmbeddedSolrServer Test

2014-07-11 Thread Alessandro Benedetti
Thank you Chris, Exactly as you suggested I was looking into related classes to that one. Playing with : @BeforeClass > public static void init() throws Exception { > final SortedMap extraServlets = new > TreeMap(); > final ServletHolder solrRestApi = new ServletHolder("SolrRestApi", >

Re: [Schema API] EmbeddedSolrServer Test

2014-07-10 Thread Chris Hostetter
EmbeddedSolrServer is really just for dealing with embedded SolrCore objects. It doesn't have ay of the other HTTP related plumbing assocaited with it -- which is why it can't be used for replication and/or cloud features, let alone the RESTLet based endpoints. if you want to write a test tha

[Schema API] EmbeddedSolrServer Test

2014-07-10 Thread Alessandro Benedetti
Hi guys, I'm struggling testing schemaAPI REST endpoints thourgh EmbeddedSolrServer. Out of the box the Embedded Solr Server is not able to recognize the schema request handler. So I was trying to follow an approach like this : public static void init() throws Exception { > final SortedMap ex

Re: [Solr Schema API] SolrJ Access

2014-07-09 Thread Alessandro Benedetti
uery = new SolrQuery(); >>> if (dynamicFields) >>> query.setRequestHandler(DYNAMIC_FIELDS_API); >>> else >>> query.setRequestHandler(DEFINED_FIELDS_API); >>> query.setParam("showDefaults"

Re: [Solr Schema API] SolrJ Access

2014-07-09 Thread Alessandro Benedetti
.setParam("showDefaults", true); >> >> QueryResponse response = solrConn.query(query) >> >> Then you've got to parse the response using NamedList etc.etc. >> >> -Original Message- >> From: Alessandro Benedetti [mailto:benedetti.ale...@

Re: [Solr Schema API] SolrJ Access

2014-07-09 Thread Alessandro Benedetti
etParam("showDefaults", true); > > QueryResponse response = solrConn.query(query) > > Then you've got to parse the response using NamedList etc.etc. > > -Original Message- > From: Alessandro Benedetti [mailto:benedetti.ale...@gmail.com] > Sen

RE: [Solr Schema API] SolrJ Access

2014-07-08 Thread Cario, Elaine
've got to parse the response using NamedList etc.etc. -Original Message- From: Alessandro Benedetti [mailto:benedetti.ale...@gmail.com] Sent: Tuesday, July 08, 2014 5:54 AM To: solr-user@lucene.apache.org Subject: [Solr Schema API] SolrJ Access Hi guys, wondering if there is any proper

[Solr Schema API] SolrJ Access

2014-07-08 Thread Alessandro Benedetti
Hi guys, wondering if there is any proper way to access Schema API via Solrj. Of course is possible to reach them in Java with a specific Http Request, but in this way, using SolrCloud for example we become coupled to one specific instance ( and we don't want) . Code Ex

Re: Using the Schema API from SolrJ

2013-07-08 Thread Shawn Heisey
On 7/6/2013 4:27 PM, Steven Glass wrote: Thanks for your response. But it seems like there should be a way to issue the equivalent of http://localhost:8983/solr/schema/version which returns { "responseHeader":{ "status":0, "QTime":4}, "version":1.5} from the s

Re: Using the Schema API from SolrJ

2013-07-06 Thread Erick Erickson
You _should_ be able to use an HttpSolrServer, set the base URL and then go ahead and make the request. Haven't done it myself, but the SolrJ "support" for various Solr features often consists of just convenience methods over the underlying HTTP, saving you the necessity of, say, parsing the respon

Re: Using the Schema API from SolrJ

2013-07-06 Thread Steven Glass
Thanks for your response. But it seems like there should be a way to issue the equivalent of http://localhost:8983/solr/schema/version which returns { "responseHeader":{ "status":0, "QTime":4}, "version":1.5} from the server. I know how to do it using HTTPGet in

Re: Using the Schema API from SolrJ

2013-07-06 Thread Jason Hellman
Steven, Some information can be gleaned from the "system" admin request handler: http://localhost:8983/solr/admin/system I am specifically looking at this: example Mind you, that is a manually-set value in the schema file. But just in case you want to get crazy you can also call the "file" a

Re: Using the Schema API from SolrJ

2013-07-06 Thread Steven Glass
Does anyone have any idea how I can access the schema version info using SolrJ? Thanks. On Jul 3, 2013, at 4:16 PM, Steven Glass wrote: > I'm using a Solr 4.3 server and accessing it from both a Java based desktop > application using SolrJ and an Android based mobile application using my > ho

Using the Schema API from SolrJ

2013-07-03 Thread Steven Glass
I'm using a Solr 4.3 server and accessing it from both a Java based desktop application using SolrJ and an Android based mobile application using my home-grown REST adaptor. I'm trying to make sure that versions of the application are synchronized with updates to the server (too often testers