fix python syntax errors in documents (#465)
This commit is contained in:
Родитель
dfa16cc407
Коммит
08076c09b7
|
@ -194,18 +194,18 @@ hs.vacuumIndex("index")
|
|||
Python:
|
||||
|
||||
```python
|
||||
// Refreshes the given index if the source data changes.
|
||||
# Refreshes the given index if the source data changes.
|
||||
hs.refreshIndex("index")
|
||||
|
||||
// Soft-deletes the given index and does not physically remove it from filesystem.
|
||||
# Soft-deletes the given index and does not physically remove it from filesystem.
|
||||
hs.deleteIndex("index")
|
||||
|
||||
// Restores the soft-deleted index.
|
||||
# Restores the soft-deleted index.
|
||||
hs.restoreIndex("index")
|
||||
|
||||
// Soft-delete the given index for vacuum.
|
||||
# Soft-delete the given index for vacuum.
|
||||
hs.deleteIndex("index")
|
||||
// Hard-delete the given index and physically remove it from filesystem.
|
||||
# Hard-delete the given index and physically remove it from filesystem.
|
||||
hs.vacuumIndex("index")
|
||||
```
|
||||
|
||||
|
|
|
@ -267,7 +267,7 @@ spark.conf.set("spark.hyperspace.index.hybridscan.maxDeletedRatio", 0.2) // 20%
|
|||
|
||||
Python:
|
||||
```python
|
||||
spark.conf.set("spark.hyperspace.index.hybridscan.enabled", true)
|
||||
spark.conf.set("spark.hyperspace.index.hybridscan.enabled", True)
|
||||
spark.conf.set("spark.hyperspace.index.hybridscan.maxAppendedRatio", 0.3) # 30% by default
|
||||
spark.conf.set("spark.hyperspace.index.hybridscan.maxDeletedRatio", 0.2) # 20% by default
|
||||
```
|
||||
|
|
Загрузка…
Ссылка в новой задаче