[SERVER-10906] Support for legacy text index format textIndexVersion:1 Created: 25/Sep/13  Updated: 27/Oct/15  Resolved: 28/Jan/14

Status: Closed
Project: Core Server
Component/s: Text Search
Affects Version/s: 2.5.2
Fix Version/s: 2.5.5

Type: Improvement Priority: Critical - P2
Reporter: J Rassi Assignee: J Rassi
Resolution: Done Votes: 0
Labels: stringdata-use-after-free
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
is duplicated by SERVER-12416 Unable to sync 2.5.x secondary with 2... Closed
Gantt Dependency
has to be done after SERVER-9628 text indexing picks up strings in arr... Closed
has to be done after SERVER-9390 Multi-language support for text search Closed
has to be done after SERVER-9932 Text search languages should accept s... Closed
Related
is related to SERVER-11494 textIndexVersion compatibility check ... Closed
is related to SERVER-12362 Command to upgrade/downgrade text ind... Closed
is related to DOCS-2531 Document 2.4<=>2.6 upgrade/downgrade ... Closed
is related to SERVER-10857 Improve error checking of text index ... Closed
Participants:
Linked BF Score: 0

 Description   

2.6 should have legacy support for textIndexVersion:1 text indexes. Otherwise, 2.4 users will need to rebuild their text indexes as textIndexVersion:2 after upgrading to 2.6.

Note that 2.5.3 will start building textIndexVersion:2 text indexes by default.



 Comments   
Comment by Githook User [ 29/Jan/14 ]

Author:

{u'username': u'jrassi', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}

Message: SERVER-10906 StageBuilder set $language correctly for STAGE_TEXT

The type of expression on the right side of the assignment is
std::string. Hence, 'language' was set to point inside a temporary
std::string constructed to hold the data from the result of c_str(),
instead of being set to point inside the the result of str() (which
has static lifetime). Hence, 'language' became a dangling pointer.
Branch: master
https://github.com/mongodb/mongo/commit/05b091054cfb75de6fafc73c9b3d3fdab75343c3

Comment by Githook User [ 28/Jan/14 ]

Author:

{u'username': u'jrassi', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}

Message: SERVER-10906 Add support for legacy text indexes

FTSSpec now handles text indexes with index option

{textIndexVersion:1}

.
Branch: master
https://github.com/mongodb/mongo/commit/8869eab327d4ab783a9dc5dae54f2261fe692cfb

Comment by J Rassi [ 25/Sep/13 ]

List of tickets with fix version 2.5 that change the index format, as of writing: SERVER-9390, SERVER-9628, SERVER-9932.

Generated at Thu Feb 08 03:24:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.