indexer

    0熱度

    1回答

    我試圖用Lucene 7.1實現一個簡單的lucene索引。 版本之間的代碼有一些變化,所以我正在遇到很多從答案到答案的變化。 在本教程我下面 https://www.avajava.com/tutorials/lessons/how-do-i-use-lucene-to-index-and-search-text-files.html 有一個線 document.add(新字段(FIELD_PA

    1熱度

    1回答

    嘗試處理(內部)KeyValueConfigurationCollection例外情況,當值來自其索引器不存在時,我出現錯誤。 public class ConfigCore { public static Configuration config { get { ExeConfigurationFileMap configFileMa

    2熱度

    1回答

    我 template <typename T> class Foo : public T { /* ... */ } ,我只用T,這種是Bar子類實例化。如果有幫助,我可以static_assert是這種情況。 所以,Eclipse CDT不承認T是「真」也是Bar。我不能抱怨 - 但我可以使它明白嗎?也就是說,我可以通過某種方式告訴索引器尋找類Bar中的方法和類型作爲Foo的基類嗎?

    2熱度

    3回答

    我有我的實體列表,我使用Select從我的實體獲取一些屬性。我的實體有一個PrimaryContact屬性,這有一個LastName屬性。所以,如果我用這樣它的正常工作 var b = items.Select(s => s[PropertyName]); //Property name is "PrimaryContact" it's fine. ,但如果我使用"PrimaryContact

    1熱度

    1回答

    索引器允許將類或結構的實例編入索引,就像 數組一樣。索引器類似於屬性,但它們的訪問器參數爲 。 我有這樣 class StudentMemento { Student student; public Student this[int index] { get { return student; } set { student

    0熱度

    1回答

    public abstract class InstallationStepLibrary { private Dictionary<string, InstallationStep> DictSteps; protected InstallationStepLibrary() { DictSteps = new Dictionary<string,

    0熱度

    1回答

    我努力想辦法解決以下任務。 設置: class Records { Cells cells; } class Cell { string FieldName; string Value; } class Cells : Collection<Cell> { public Cell this[string FieldName]

    0熱度

    1回答

    我正在使用索引器在Azure索引中加載數據。我想使用本地數據庫來複制蔚藍索引中的數據。我不想使用ADF。 Here我發現我需要允許azure搜索IP連接到本地數據庫。但我不知道如何配置?

    0熱度

    1回答

    我正在嘗試使索引MP4文件的Azure函數。我正在尋找一種方法來讀取索引器所需的配置文件。我已經制作了一個控制檯應用程序,它正在從我的硬盤讀取配置文件,這是完美的。但是,如何讀取Azure函數中的文件? 例如: EncodeFile(asset, @"e:\index.xml"); public static IAsset EncodeFile(IAsset asset, string con

    3熱度

    1回答

    有人可以解釋一下索引器有什麼好處嗎? public class MyClass { private List<string> list = new List<string>() public string this[int value] { get { return list[value]; } }