Changing Solr Schema with Data

2015-12-28 Thread Salman Ansari
Hi, I am facing an issue where I need to change Solr schema but I have crucial data that I don't want to delete. Is there a way where I can change the schema of the index while keeping the data intact? Regards, Salman

Re: Changing Solr Schema with Data

2015-12-28 Thread Alexandre Rafalovitch
Is the schema change affects the data you want to keep? Newsletter and resources for Solr beginners and intermediates: http://www.solr-start.com/ On 29 December 2015 at 01:48, Salman Ansari <salman.rah...@gmail.com> wrote: > Hi, > > I am facing an issue where I need to cha

Re: Changing Solr Schema with Data

2015-12-28 Thread Jack Krupansky
. Was someone telling you something different? -- Jack Krupansky On Mon, Dec 28, 2015 at 1:48 PM, Salman Ansari <salman.rah...@gmail.com> wrote: > Hi, > > I am facing an issue where I need to change Solr schema but I have crucial > data that I don't want to delete. Is there

Re: Changing Solr Schema with Data

2015-12-28 Thread Salman Ansari
wrote: > Is the schema change affects the data you want to keep? > > Newsletter and resources for Solr beginners and intermediates: > http://www.solr-start.com/ > > > On 29 December 2015 at 01:48, Salman Ansari <salman.rah...@gmail.com> > wrote: > > Hi, > > >

Re: Changing Solr Schema with Data

2015-12-28 Thread Shalin Shekhar Mangar
Adding new fields is not a problem. You can continue to use your existing index with the new schema. On Tue, Dec 29, 2015 at 1:58 AM, Salman Ansari <salman.rah...@gmail.com> wrote: > You can say that we are not removing any fields (so the old data should not > get affected), howe

Schema/Index design for disparate data sources (Federated / Google like search)

2015-12-22 Thread Susheel Kumar
Hello, I am going thru few use cases where we have kind of multiple disparate data sources which in general doesn't have much common fields and i was thinking to design different schema/index/collection for each of them and query each of them separately and provide different result sets

Re: Schema/Index design for disparate data sources (Federated / Google like search)

2015-12-22 Thread Jack Krupansky
gt; sources which in general doesn't have much common fields and i was thinking > to design different schema/index/collection for each of them and query each > of them separately and provide different result sets to the client. > > I have seen one implementation where all different fields fro

Re: Schema/Index design for disparate data sources (Federated / Google like search)

2015-12-22 Thread Susheel Kumar
option, how do you suggest to design the index/schema? Let me know if i am missing any other info to get your thoughts. On Tue, Dec 22, 2015 at 11:53 AM, Jack Krupansky <jack.krupan...@gmail.com> wrote: > Step one is to refine and more clearly state the requirements. Sure, > som

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: 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

Re: Schema API, change the defaultoperator

2015-12-11 Thread Yago Riveiro
works with POST http calls? On Fri, Dec 11, 2015 at 2:26 PM, Shawn Heisey <apa...@elyograg.org> 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 th

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

Re: schema fileds and Typefield in solr-5.3.1

2015-12-05 Thread kostali hassan
I fixe the prb using requestHandler dataimoprt: tika-data-config.xml I configure the tika-data-config.xml according to my needs to get the right value : now dont need indexing from Commandline using

Re: Solr 5: Schema.xml vs. Managed Schema - which is advisable?

2015-12-04 Thread Rick Leir
On Fri, Dec 4, 2015 at 12:59 AM, <solr-user-digest-h...@lucene.apache.org> wrote: > > >Just wondering if folks have any suggestions on using Schema.xml vs. > >Managed Schema going forward. > > We are using loosely typed languages (Perl and Javascript), and

Re: schema fileds and Typefield in solr-5.3.1

2015-12-04 Thread kostali hassan
thank you Erick, i follow you advice and take a look to config apache tika, I have modifie my request handler /update/extract: last_modified ignored_ true links ignored_ D:\solr\solr-5.3.1\server\solr\tika-data-config.xml and config tika :

Re: schema fileds and Typefield in solr-5.3.1

2015-12-04 Thread Erik Hatcher
Kostali - See if the "Introspect rich document parsing and extraction” section of http://lucidworks.com/blog/2015/08/04/solr-5-new-binpost-utility/ helps*. You’ll be able to see the output of /update/extract (aka Tika) and adjust your mappings and configurations accordingly. * And apologies

Re: schema fileds and Typefield in solr-5.3.1

2015-12-04 Thread kostali hassan
thank you , that's why I choose to add the exact value using solarium PHP Client, but the time out stop indexing after 30seconde: $dir = new Folder($dossier); $files = $dir->find('.*\.*'); foreach ($files as $file) { $file = new File($dir->pwd() . DS . $file); $query =

Re: Solr 5: Schema.xml vs. Managed Schema - which is advisable?

2015-12-04 Thread Erick Erickson
, Erick On Fri, Dec 4, 2015 at 6:51 AM, Rick Leir <richard.l...@canadiana.ca> wrote: > On Fri, Dec 4, 2015 at 12:59 AM, <solr-user-digest-h...@lucene.apache.org> > wrote: > >> >> >Just wondering if folks have any suggestions on using Schema.xml vs. >> &g

Re: Solr 5: Schema.xml vs. Managed Schema - which is advisable?

2015-12-04 Thread Alexandre Rafalovitch
Not that hard to setup a cron and diff job and email when the diff is not-empty. A sort-of "is that what you expected" report. But, for myself, I also prefer schema and then managed. I do not like schemaless mode, even for development. Instead, I prefer to do "dynamicField *".

RE: Solr 5: Schema.xml vs. Managed Schema - which is advisable?

2015-12-04 Thread Davis, Daniel (NIH/NLM) [C]
. The theme with Elastic Search was: - spend some time on your field mappings (which are a schema) up front. - if you don't, you are either going to be wasting space, or experiencing slow search, or both. The theme with RDF was: - First model your vocabulary and make sure it answers the questions you

Re: Solr 5: Schema.xml vs. Managed Schema - which is advisable?

2015-12-04 Thread Upayavira
having to re-index everything because they had their field > mappings wrong. I've also worked on Linked Data, RDF, where the fact > that everything is a triple is supposed to make SQL schemas unneeded. > > The theme with Elastic Search was: > - spend some time on your field mappings (w

schema fileds and Typefield in solr-5.3.1

2015-12-03 Thread kostali hassan
I start working in solr 5x by extract solr in D://solr and run solr server with : D:\solr\solr-5.3.1\bin>solr start ; Then I create a core in standalone mode : D:\solr\solr-5.3.1\bin>solr create -c mycore I need indexing from system files (word and pdf) and the schema API don’t have a

Re: Solr 5: Schema.xml vs. Managed Schema - which is advisable?

2015-12-03 Thread Shawn Heisey
On 12/3/2015 8:09 AM, Kelly, Frank wrote: > Just wondering if folks have any suggestions on using Schema.xml vs. Managed > Schema going forward. > > Our deployment will be >> 3 Zk, 3 Shards, 3 replicas >> Copies of each collection in 5 AWS regions (EBS-backed EC2 instanc

Re: Solr 5: Schema.xml vs. Managed Schema - which is advisable?

2015-12-03 Thread Erick Erickson
Shawn: Managed schema is _used_ by "schemaless", but not the same thing at all. For "schemaless" (i.e. "data driven"), you need to include the update processor chains that do the guessing for you and makes use of the managed veatures to add fields to your schem

Solr 5: Schema.xml vs. Managed Schema - which is advisable?

2015-12-03 Thread Kelly, Frank
Just wondering if folks have any suggestions on using Schema.xml vs. Managed Schema going forward. Our deployment will be > 3 Zk, 3 Shards, 3 replicas > Copies of each collection in 5 AWS regions (EBS-backed EC2 instances) > Planning at least 1 Billion objects indexed (currently <

Re: Solr 5: Schema.xml vs. Managed Schema - which is advisable?

2015-12-03 Thread Jeff Wartes
I’ve never used the managed schema, so I’m probably biased, but I’ve never seen much of a point to the Schema API. I need to make changes sometimes to solrconfig.xml, in addition to schema.xml and other config files, and there’s no API for those, so my process has been like: 1. Put the entire

Re: Solr 5: Schema.xml vs. Managed Schema - which is advisable?

2015-12-03 Thread Erick Erickson
It Depends (tm). Managed Schema is way cool if you have a front end that lets you manipulate the schema via a browser or other program. There's really no other way to deal with changing the schema from a browser without allowing uploading xml files, which is a security problem. Trust me

Re: Solr 5: Schema.xml vs. Managed Schema - which is advisable?

2015-12-03 Thread Upayavira
They are different beasts, but I bet on the managed schema winning in the long run. With the bulk API, you can post a heap of fields/etc in one go, so basically, rather than pushing the schema to Zookeeper, you push it to Solr. Look at Solr 5.4 when it comes out shortly. It'll change the way

Re: Solr 5: Schema.xml vs. Managed Schema - which is advisable?

2015-12-03 Thread Don Bosco Durai
My experience is, once managed-schema is created, then schema.xml even if present is ignored. When both are present, you will get a warning in the Solr log. I have stopped using schema.xml. Actually, I use it once, start Solr and after it generates managed-schema, I export it and pretty much

Re: schema fileds and Typefield in solr-5.3.1

2015-12-03 Thread Erick Erickson
>solr start ; > > Then I create a core in standalone mode : > > D:\solr\solr-5.3.1\bin>solr create -c mycore > > I need indexing from system files (word and pdf) and the schema API don’t > have a field “name” of document, then I Add this field using curl : > > curl

Re: Multiple unique key in Schema

2015-11-17 Thread Erik Hatcher
t;muge...@gmail.com> wrote: > > Hi! > > I have a 3 csv table, > 1.)retuarant > 2.)User > 3.)Review > > every csv have a unique key, then how i can configure multiple unique key in > solr > > > > -- > View this message in context: > http://

Re: Multiple unique key in Schema

2015-11-17 Thread Alexandre Rafalovitch
When you index into Solr, you are overlapping the definitions into one schema. Therefore, you will need a unified uniqueKey. There is a couple of approaches: 1) Maybe you don't actually store the data as three types of entities. Think about what you will want to find and structure the data

Multiple unique key in Schema

2015-11-17 Thread Mugeesh Husain
Hi! I have a 3 csv table, 1.)retuarant 2.)User 3.)Review every csv have a unique key, then how i can configure multiple unique key in solr -- View this message in context: http://lucene.472066.n3.nabble.com/Multiple-unique-key-in-Schema-tp4240550.html Sent from the Solr - User mailing list

Re: Multiple unique key in Schema

2015-11-17 Thread Mugeesh Husain
>>Or perhaps use the UUID auto id feature. if i use UUID, then how i can update particular document, i think using this ,there will not any document identity -- View this message in context: http://lucene.472066.n3.nabble.com/Multiple-unique-key-in-Schema-tp4240550p4240557.html Sen

Re: Multiple unique key in Schema

2015-11-17 Thread Mugeesh Husain
>>Or perhaps use the UUID auto id feature. if i use UUID, then how i can update particular document, i think using this ,there will not any document identity -- View this message in context: http://lucene.472066.n3.nabble.com/Multiple-unique-key-in-Schema-tp4240550p4240563.html Sen

Re: Multiple unique key in Schema

2015-11-17 Thread Erik Hatcher
> View this message in context: > http://lucene.472066.n3.nabble.com/Multiple-unique-key-in-Schema-tp4240550p4240557.html > Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr 5.3.1 CREATE defaults to schema-less mode Java version 1.7.0_45

2015-10-30 Thread natasha
on1> ' curl 'http://localhost:8983/solr/test-core/schema/fields' As opposed to running bin/solr start -e cloud (which spins up an example) before I load a core. Thank you, Natasha On Fri, Oct 30, 2015 at 10:24 AM, Natasha Whitney <nata...@factual.com> wrote: > Hi Erick, > >

Re: Solr 5.3.1 CREATE defaults to schema-less mode Java version 1.7.0_45

2015-10-30 Thread natasha
returned in the schema are the default fields. If there is an preferable (non-cloud) way to create a core to point at an existing instanceDir please advise! Thank you, Natasha On Thu, Oct 29, 2015 at 8:58 PM, Erick Erickson [via Lucene] < ml-node+s472066n4237322...@n3.nabble.com> wrote:

Re: Solr 5.3.1 CREATE defaults to schema-less mode Java version 1.7.0_45

2015-10-30 Thread Upayavira
lhost:8983/solr/admin/cores?action=CREATE=test-core=/home/natasha/twc-sessions-dash/collection1> > ' > curl 'http://localhost:8983/solr/test-core/schema/fields' > > As opposed to running bin/solr start -e cloud (which spins up an example) > before I load a core. Well yes, the -e

Solr 5.3.1 CREATE defaults to schema-less mode Java version 1.7.0_45

2015-10-29 Thread natasha
the following content: 1024100012147483647truefalsetermsLUCENE_41 And see schema.xml at bottom of post: And the core is ostensibly created without an issue (numDocs is 59, which is correct and no error logged) But, when I ping the newly created core's schema via: curl 'http://localhost:8985/solr/test

Re: Solr 5.3.1 CREATE defaults to schema-less mode Java version 1.7.0_45

2015-10-29 Thread natasha
Note, if I attempt to CREATE the core using Solr 5.3.0 on my openstack machine (Java version 1.7.0) I have no issues. -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-5-3-1-CREATE-defaults-to-schema-less-mode-Java-version-1-7-0-45-tp4237305p4237307.html Sent from

Re: Solr 5.3.1 CREATE defaults to schema-less mode Java version 1.7.0_45

2015-10-29 Thread Erick Erickson
to CREATE the core using Solr 5.3.0 on my openstack > machine (Java version 1.7.0) I have no issues. > > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Solr-5-3-1-CREATE-defaults-to-schema-less-mode-Java-version-1-7-0-45-tp4237305p4237307.html

adding fields to a managed schema using solr cloud

2015-09-11 Thread Hendrik Haddorp
Hi, I have a simple Solr 5.3 cloud setup with two nodes using a manged schema. I'm creating a collection using a schema that initially only contains the id field. When documents get added I'm dynamically adding the required fields. Currently this fails quite consistently as in bug SOLR-7536

date field in the schema causing a problem

2015-08-10 Thread Scott Derrick
I'm attempting to index my data. Which are autogenerated html documents, the source being TEI(xml) documents. I created the collection with sudo su - solr -c /opt/solr/bin/solr create -c mbepp -n data_driven_schema_configs I'm indexing with find . -mindepth 2 -not -name person_*.* -not

Re: date field in the schema causing a problem

2015-08-10 Thread Scott Derrick
Chris, mucho thanks. The solr.RegexReplaceProcessorFactory looks like what I need. What a fantastic search engine this is! thanks again, Scott On 8/10/2015 5:21 PM, Chris Hostetter wrote: : meta name=date content=Unknown / : meta name=dc.date.created content=Unknown / : : Most documents

Re: date field in the schema causing a problem

2015-08-10 Thread Chris Hostetter
: meta name=date content=Unknown / : meta name=dc.date.created content=Unknown / : : Most documents have a correctly formatted date string and I would like to keep : that data available for search on the date field. ... : I realize it is complaining because the date string isn't matching

Re: Help me under the pros/cons of dynamic fields and schema-less mode

2015-07-18 Thread Shawn Heisey
On 7/18/2015 9:49 AM, Charlie Hubbard wrote: So I want to allow people to upload any CSV/XML/JSON to solr they want so having a predefined schema isn't going to cut it. After reading about my options I figured my choices were schema-less mode and dynamic fields using the * with a type other

Help me under the pros/cons of dynamic fields and schema-less mode

2015-07-18 Thread Charlie Hubbard
So I want to allow people to upload any CSV/XML/JSON to solr they want so having a predefined schema isn't going to cut it. After reading about my options I figured my choices were schema-less mode and dynamic fields using the * with a type other than ignore. I know the docs say schema-less

Re: Help me under the pros/cons of dynamic fields and schema-less mode

2015-07-18 Thread Erick Erickson
bq: So I want to allow people to upload any CSV/XML/JSON to solr they want so having a predefined schema isn't going to cut it Piling on to Shawn's excellent comments I would really advise agains this. Sure, you could make everything a text field using the * catch-all, but. If a field

Does update field feature work in a schema with dynamic fields?

2015-07-15 Thread Martínez López , Alfonso
Hi, i'm using Solr 4.10.3, and i'm trying update a doc field using atomic update (http://wiki.apache.org/solr/Atomic_Updates). My schema.xml is like this: !--Fields-- field name=id type=string indexed=true stored=true required=true / field name=name type=string indexed=true stored=true / field

Re: Does update field feature work in a schema with dynamic fields?

2015-07-15 Thread Alessandro Benedetti
This is kinda weird and looks a lot like a bug. Let me try to reproduce it locally! I let you know soon ! Cheers 2015-07-15 10:01 GMT+01:00 Martínez López, Alfonso almlo...@indra.es: Hi, i'm using Solr 4.10.3, and i'm trying update a doc field using atomic update

Re: Does update field feature work in a schema with dynamic fields?

2015-07-15 Thread Alessandro Benedetti
Just tried, on Solr 5.1 and I get the proper behaviour. Actually where is the value for the dinamic_desc coming from ? I can not see it in the updates and actually it is not in my index. Are you sure you have not forgotten any detail ? Cheers 2015-07-15 11:48 GMT+01:00 Alessandro Benedetti

Re: Does update field feature work in a schema with dynamic fields?

2015-07-15 Thread Alessandro Benedetti
if 'desc_field' or 'desc_*' where multivalued. Cheers. From: Alessandro Benedetti [benedetti.ale...@gmail.com] Sent: Wednesday, July 15, 2015 12:56 PM To: solr-user@lucene.apache.org Subject: Re: Does update field feature work in a schema with dynamic

Re: Does update field feature work in a schema with dynamic fields?

2015-07-15 Thread Alessandro Benedetti
: … if (!destinationField.multiValued() destHasValues) { throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, ERROR: +getID(doc, schema)+multiple values encountered for non multiValued copy field + destinationField.getName() + : + v); } ... Because the check is actually checking in already

RE: Does update field feature work in a schema with dynamic fields?

2015-07-15 Thread Martínez López , Alfonso
field feature work in a schema with dynamic fields? Just tried, on Solr 5.1 and I get the proper behaviour. Actually where is the value for the dinamic_desc coming from ? I can not see it in the updates and actually it is not in my index. Are you sure you have not forgotten any detail ? Cheers

Re: Does update field feature work in a schema with dynamic fields?

2015-07-15 Thread Shawn Heisey
On 7/15/2015 3:01 AM, Martínez López, Alfonso wrote: !--Fields-- field name=id type=string indexed=true stored=true required=true / field name=name type=string indexed=true stored=true / field name=src_desc type=string indexed=true stored=true / field name=_version_ type=long indexed=true

Re: Does update field feature work in a schema with dynamic fields?

2015-07-15 Thread Alessandro Benedetti
/DocumentBuilder.java:89 // Make sure it has the correct number if( sfield!=null !sfield.multiValued() field.getValueCount() 1 ) { throw new SolrException( SolrException.ErrorCode.BAD_REQUEST, ERROR: +getID(doc, schema)+multiple values encountered for non multiValued field + sfield.getName

Re: Does update field feature work in a schema with dynamic fields?

2015-07-15 Thread Alessandro Benedetti
applications that use Solr have at least surface knowledge of the schema, which should make it possible for the application writer to just pull the information from the source field. It seems that your application may not have that knowledge, though. Thanks, Shawn

RE: Does update field feature work in a schema with dynamic fields?

2015-07-15 Thread Martínez López , Alfonso
. From: Alessandro Benedetti [benedetti.ale...@gmail.com] Sent: Wednesday, July 15, 2015 2:28 PM To: solr-user@lucene.apache.org Subject: Re: Does update field feature work in a schema with dynamic fields? Going through the code in the RunUpdateRequestProcessor we call at one point : … Document

Re: Does update field feature work in a schema with dynamic fields?

2015-07-15 Thread Erick Erickson
information twice, which is wasteful and increases resource requirements. Most applications that use Solr have at least surface knowledge of the schema, which should make it possible for the application writer to just pull the information from the source field. It seems that your application

Re: Does update field feature work in a schema with dynamic fields?

2015-07-15 Thread Shawn Heisey
surface knowledge of the schema, which should make it possible for the application writer to just pull the information from the source field. It seems that your application may not have that knowledge, though. Thanks, Shawn

RE: Does update field feature work in a schema with dynamic fields?

2015-07-15 Thread Martínez López , Alfonso
-user@lucene.apache.org Subject: Re: Does update field feature work in a schema with dynamic fields? Hey Shawn, I was debugging a little bit,this is the problem : When adding a field from the solr document, to the Lucene one, even if this document was previously added by the execution of the copy

schema design

2015-07-14 Thread Midas A
Hi , we are implementing solr search in our e-commerce web application . i have few question in my mind like a) How to store the data so that i can give me more relevant results for queries like red shirts , peter England shirts in global search where red is color and peter England

Re: Indexed field to schema field

2015-07-08 Thread Gajendra Dadheech
I wish to do it in code so schema browser is lesser of an option. Use case is : I wish to boost particular fields while matching, for that i need to know My field to Solr field mapping. SO that i can put that in the query. Thanks and regards, Gajendra Dadheech On Tue, Jul 7, 2015 at 9:23 PM

Re: Indexed field to schema field

2015-07-08 Thread Alessandro Benedetti
Dadheech gajju3...@gmail.com wrote: I wish to do it in code so schema browser is lesser of an option. Use case is : I wish to boost particular fields while matching, for that i need to know My field to Solr field mapping. SO that i can put that in the query. Thanks and regards

Re: Indexed field to schema field

2015-07-08 Thread Gajendra Dadheech
: I wish to do it in code so schema browser is lesser of an option. Use case is : I wish to boost particular fields while matching, for that i need to know My field to Solr field mapping. SO that i can put that in the query. Thanks and regards, Gajendra Dadheech

Re: Indexed field to schema field

2015-07-08 Thread Gajendra Dadheech
At the time of forming this request i am not sure which kind of field that would be. So i read fields in new searcher. Thanks and regards, Gajendra Dadheech On Wed, Jul 8, 2015 at 2:12 PM, Gajendra Dadheech gajju3...@gmail.com wrote: I wish to do it in code so schema browser is lesser

Re: Indexed field to schema field

2015-07-07 Thread Erick Erickson
Feels like an XY problem. Why do you want to do this? What's the use-case? Perhaps there's an alternative approach that satisfies the need. Best, Erick On Tue, Jul 7, 2015 at 4:21 AM, Mikhail Khludnev mkhlud...@griddynamics.com wrote: Just an idea, Solr Admin/Schema Browser reports some info

Indexed field to schema field

2015-07-07 Thread Gajendra Dadheech
Hi, Can i some how translate fields which i read from newSearcher.getAtomicReader().fields(), to schema fields ? Does solr expose any method to do this translation ? Alternative approach i am thinking will involved lots of regex computation as the fields would be _string, _float etc and i would

Re: Indexed field to schema field

2015-07-07 Thread Mikhail Khludnev
Just an idea, Solr Admin/Schema Browser reports some info like this, hence, you can trace the way in which it does it. On Tue, Jul 7, 2015 at 10:34 AM, Gajendra Dadheech gajju3...@gmail.com wrote: Hi, Can i some how translate fields which i read from newSearcher.getAtomicReader().fields

Managed schema and schema.xml file

2015-06-18 Thread Steven White
=managedSchemaResourceNamemy-schema.xml/str /schemaFactory In 5.1.0 (and maybe prior ver.?) when I enable managed schema per the above, the existing schema.xml file is left as-is, a copy of it is created as schema.xml.bak and a new one is created based on the name I gave it my-schema.xml. With 5.2.1

Re: Managed schema and schema.xml file

2015-06-18 Thread Shawn Heisey
On 6/18/2015 8:10 AM, Steven White wrote: In 5.1.0 (and maybe prior ver.?) when I enable managed schema per the above, the existing schema.xml file is left as-is, a copy of it is created as schema.xml.bak and a new one is created based on the name I gave it my-schema.xml. With 5.2.1

Help for a field in my schema ?

2015-05-29 Thread Bruno Mannina
Dear Solr-Users, (SOLR 5.0 Ubuntu) I have xml files with tags like this claimXXYYY where XX is a language code like FR EN DE PT etc... (I don't know the number of language code I can have) and YYY is a number [1..999] i.e.: claimen1 claimen2 claimen3 claimfr1 claimfr2 claimfr3 I would like

Re: Help for a field in my schema ?

2015-05-29 Thread Erick Erickson
Well yes, but the second doesn't do what you say you want, bq: *claim *equal to all claimXXYYY (all languages, all numbers, indexed=true, stored false) (search not needed but must be displayed) You can search this field, but specifying it in a field list (fl) will return nothing, you need

Re: schema modification issue

2015-05-12 Thread Ziloo Zolr
a test to reproduce. Can you please create a Solr JIRA issue for this?: https://issues.apache.org/jira/browse/SOLR/ Thanks, Steve On May 7, 2015, at 5:40 AM, User Zolr zolr.u...@gmail.com wrote: Hi there, I have come accross a problem that when using managed schema in SolrCloud

Re: schema modification issue

2015-05-11 Thread Steve Rowe
using managed schema in SolrCloud, adding fields into schema would SOMETIMES end up prompting Can't find resource 'schema.xml' in classpath or '/configs/collectionName', cwd=/export/solr/solr-5.1.0/server, there is of course no schema.xml in configs, but 'schema.xml.bak' and 'managed-schema

schema modification issue

2015-05-07 Thread User Zolr
Hi there, I have come accross a problem that when using managed schema in SolrCloud, adding fields into schema would SOMETIMES end up prompting Can't find resource 'schema.xml' in classpath or '/configs/collectionName', cwd=/export/solr/solr-5.1.0/server, there is of course no schema.xml

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 ysee...@gmail.com wrote: On Wed, May 6, 2015 at 8:10 PM, Steve Rowe sar...@gmail.com 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

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

2015-05-07 Thread Steven White
in the schema refers to copy field rules), unlike fields, dynamic fields and field types, so delete-copy-field/add-copy-field works as one would expect. For fields, dynamic fields and field types, a delete followed by an add is not the same as a replace, since (dynamic) fields could have dependent

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 the API over

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

2015-05-06 Thread Steve Rowe
a mutiply specified copy field rule will delete all of them, but this isn’t tested, so I’m not sure. There is no replace-copy-field command because copy field rules don’t have dependencies (i.e., nothing else in the schema refers to copy field rules), unlike fields, dynamic fields and field types

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 sar...@gmail.com 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.

Re: Schema API: add-field-type

2015-05-05 Thread Steve Rowe
Hi Steve, responses inline below: On Apr 29, 2015, at 6:50 PM, Steven White swhite4...@gmail.com wrote: Hi Everyone, When I pass the following: http://localhost:8983/solr/db/schema/fieldtypes?wt=xml I see this (as one example): lst str name=namedate/str str name

Schema API: add-field-type

2015-04-29 Thread Steven White
Hi Everyone, When I pass the following: http://localhost:8983/solr/db/schema/fieldtypes?wt=xml I see this (as one example): lst str name=namedate/str str name=classsolr.TrieDateField/str str name=precisionStep0/str str name=positionIncrementGap0/str arr name=fields

Re: help with schema containing nested documents

2015-04-19 Thread Alexandre Rafalovitch
There are no nested schemas as such. It's only a superset schema that includes all the fields for parents and children. Obviously, the fields that are not common should be optional. The rest depends on what parent/child relation you are trying to setup. Whether it is explicit with block indexing

help with schema containing nested documents

2015-04-17 Thread Nicolae Pandrea
Hi, I need some documentation/samples on how to create a SOLR schema with nested documents. I have been looking online but could not find anything. Thank you in advance, Nick Pandrea

How do I tell Tika to not complement a field's value defined in my Solr schema when indexing a binary document?

2015-04-15 Thread Patrick Savelberg
I use Solr to index different kinds of database tables. I have a Solr index containing a field named category. I make sure that the category field in Solr gets occupied with the right value depending on the table. This I can use to build facet queries which works fine. The problem I have is

Re: How do I tell Tika to not complement a field's value defined in my Solr schema when indexing a binary document?

2015-04-15 Thread Erick Erickson
My standard answer when you want to really customize how stuff like this works is to do the Tika processing in SolrJ. That lets you ignore/modify/whatever anything you want. It also moves the parsing load off of the Solr node which scales much better. Here's an example:

Validate document against schema

2015-04-15 Thread Artem Karpenko
Hi, I am looking for possibility to validate document that is about to be inserted against schema to check if addition of document will fail or not w/o actually making an insert. Is there a way to that? I'm doing update from inside the Solr plugin so there is an access to API if that matters

solr5 - where does solr5 look for schema files?

2015-03-01 Thread Gulliver Smith
with solr5, I have tried a number of things without success. a) copied my custom schema.xml to server/solr/configsets/basic_configs/conf/custom_schema.xml - when I typed custom_schema.xml into the schema: field in the create core dialog, a core is created but the new schema isn't used. Making

Re: solr5 - where does solr5 look for schema files?

2015-03-01 Thread Erick Erickson
installation by manually editing the core directories as root. When playing with solr5, I have tried a number of things without success. a) copied my custom schema.xml to server/solr/configsets/basic_configs/conf/custom_schema.xml - when I typed custom_schema.xml into the schema: field

Atomic Update while having fields with attribute stored=true in schema

2015-02-23 Thread Rahul Bhooteshwar
Hi, I have around 50 fields in my schema and having 20 fields are stored=”true” and rest of them stored=”false” In case partial update (atomic update), it is mentioned at many places that the fields in schema should have stored=”true”. I have also tried atomic update on documents having fields

Re: Atomic Update while having fields with attribute stored=true in schema

2015-02-23 Thread Yago Riveiro
have around 50 fields in my schema and having 20 fields are stored=”true” and rest of them stored=”false” In case partial update (atomic update), it is mentioned at many places that the fields in schema should have stored=”true”. I have also tried atomic update on documents having fields

Re: Atomic Update while having fields with attribute stored=true in schema

2015-02-23 Thread Yago Riveiro
Bhooteshwar rahul.bhootesh...@hotwaxsystems.com wrote: Hi, I have around 50 fields in my schema and having 20 fields are stored=”true” and rest of them stored=”false” In case partial update (atomic update), it is mentioned at many places that the fields in schema should have stored=”true”. I have also

Re: Atomic Update while having fields with attribute stored=true in schema

2015-02-23 Thread Rahul Bhooteshwar
wrote: Hi, I have around 50 fields in my schema and having 20 fields are stored=”true” and rest of them stored=”false” In case partial update (atomic update), it is mentioned at many places that the fields in schema should have stored=”true”. I have also tried atomic update on documents

Re: After adding field to schema, the field is not being returned in results.

2015-01-27 Thread Carl Roberts
I too am running into what appears to be the same thing. Everything works and data is imported but I cannot see the new field in the result.

Re: After adding field to schema, the field is not being returned in results.

2015-01-27 Thread Alexandre Rafalovitch
If you can index stuff into a new schema for test, try defining one with dynamicField name=* stored=true indexed=true type=string. Your schema may have one like this commented out and/or set to false. This would show you exactly what you are indexing and solve whether you have any spelling

Re: How to implement multi-set in a Solr schema.

2014-12-29 Thread Meraj A. Khan
Thanks Jack, inorder to not affect the query time , what are the options available to handle this as index time ? So that I group all the similar books at index time by placing them in some kind of a set , and retrive all the contents of the set at query time if any one them matches the query. On

How to implement multi-set in a Solr schema.

2014-12-28 Thread S.L
Hi All, I have a use case where I need to group documents that have a same field called bookName , meaning if there are a multiple documents with the same bookName value and if the user input is searched by a query on bookName , I need to be able to group all the documents by the same bookName

Re: How to implement multi-set in a Solr schema.

2014-12-28 Thread Aman Tandon
HI, You can use the grouping in the solr. You can does this by via query or via solrconfig.xml. *A) via query* http://localhost:8983?your_query_params*group=truegroup.field=bookName* You can limit the size of group (how many documents you wants to show), suppose you want to show 5 documents

<    1   2   3   4   5   6   7   8   9   10   >