Questions tagged [reindex]
459 questions
1
vote
1 answer
unknown field [dest], parser not found- error coming while reindexing
While indexing with the following code, error arises as unknown field parser not found:
client.reindex({
body: {
script: {
source: {
index: index,
type: "_doc",
…

A.Code.Ran
- 77
- 1
- 9
1
vote
0 answers
Same DataFrame.reindex code - different output
Good afternoon everyone,
I want to filter out from a DataFrame the columns that I am not interested in.
To do that - and since the columns could change based on user input (that I will not show here) - I am using the following code within my…

Filippo Antonio Capizzi
- 138
- 1
- 1
- 11
1
vote
2 answers
Server error while performing Elasticsearch Reindex in place operation
I am using, AWS Elasticsearch service(version 6.3). I am interested in changing mapping while re-indexing data from current_index to new_index. I am not trying to upgrade from older Elasticsearch clusters to new one. Both my current_index and…

Ganesh kudva
- 990
- 3
- 13
- 34
1
vote
1 answer
Reindexing Solr Data with different field type
I am facing an issue while reindexing Solr data.
I have indexed some documents specifying a wrong field type on the managed-schema file.
Now, instead of the wrong field definition, I would like to use:

Labo29
- 117
- 3
- 13
1
vote
0 answers
reindex group to add missing rows
I am trying to reindex groups to extend dataframes with missing values. Similar as resample works for time indexes, I am trying to achieve this for normal integer values.
So, for a group belonging to a certain group key (proID in my case) a maximum…

PaLi
- 73
- 9
1
vote
3 answers
How to reindex a pandas dataframe within a function?
I'm trying to add column headers with empty values to my dataframe (just like this answer), but within a function that is already modifying it, like so:
mydf = pd.DataFrame()
def myfunc(df):
df['newcol1'] = np.nan # this works
…

Excel Help
- 134
- 12
1
vote
1 answer
New index creation with new mapping from previously existing index
{
"someindex": {
"aliases": {
"somealias": {}
},
"mappings": {},
"settings": {
"index": {
"number_of_shards": "5",
"provided_name": "someindex",
"creation_date": "1547325991414",
…

jatin mahajan
- 81
- 2
- 7
1
vote
2 answers
Transfer one shard or index between two Elasticsearch server
I know how copy an index in one server with Reindex API but now there are two servers (Elastic A and Elastic B) on two separated hosts like this:
Elastic A
|_ index a1
|_ index a2
and
Elastic B
|_ index b1
|_ index b2
I need to copy a1 to…

mohammad asghari
- 1,817
- 1
- 16
- 23
1
vote
1 answer
pandas reindex fill in missing dates
I have a dataframe with an index of dates. Each data is the first of the month. I want to fill in all missing dates in the index at a daily level.
I thought this should work:
daily=pd.date_range('2016-01-01', '2018-01-01',…

fred.schwartz
- 2,023
- 4
- 26
- 53
1
vote
0 answers
Rails Sunspot Solr reindex slow only on prod, but not on staging and local
I have been reindex my solr manually since the app is pretty limited and it sometimes requires me to go and manually fix something in the MySQL database. Then i reindex the solr to match the changes. On local and staging the reindex runs just fine.…

TheyCallMeAMonkey
- 21
- 2
1
vote
3 answers
ElasticSearch reindex nested field as new documents
I am currently changing my ElasticSearch schema.
I previously had one type Product in my index with a nested field Product.users.
And I now wants to get 2 different indices, one for Product, an other one for User and make links between both in…

LordWeedlle
- 75
- 10
1
vote
1 answer
Elasticsearch Reindex dynamic mapped location data to geoshape
I recorded some data to Elasticsearch. But my template is not worked good and my location datas mapped dynamic. I want to reindex all data with query script. How can I convert location data to geoshape?
Sample data:
{
"deviceId": "dev1",
…

Bilal Demir
- 587
- 6
- 17
1
vote
3 answers
Reindex DataFrame Columns by Label Series
I have a Series of Labels
pd.Series(['L1', 'L2', 'L3'], ['A', 'B', 'A'])
and a dataframe
pd.DataFrame([[1,2], [3,4]], ['I1', 'I2'], ['A', 'B'])
I'd like to have a dataframe with columns ['L1', 'L2', 'L3'] with the column data from 'A', 'B', 'A'…

rhaskett
- 1,864
- 3
- 29
- 48
1
vote
3 answers
Insert new values in to array
In Matlab, I have an array that has labels, for example
Events = [10; 11; 41; 42; 31; 32; 41; 42];
I want to edit this array so that after each 41 I insert 8 411s such that I end up with:
New_events = [10; 11; 41; 411; 411; 411; 411; 411; 411;…

Maheen Siddiqui
- 539
- 8
- 19
1
vote
1 answer
Pandas Dataframe Pivot and reindex n timeseries
I have a pandas dataframe containing n time series in the same Datetime column, each one associated to a different Id, with a corresponding value associated. I would like to pivot the table and reindex to the nearest timestamp. Notice that there can…

Joey
- 89
- 7