首页 \ 问答 \ meteor:easy-search第一个查询返回空(meteor:easy-search first query returns empty)

meteor:easy-search第一个查询返回空(meteor:easy-search first query returns empty)

使用meteor easy-search我的用户集上有一个索引:

UserIndex = new EasySearch.Index({
    collection: Meteor.users,
    fields: ['username', 'realname', 'bio', 'email'],
    engine: new EasySearch.MongoDB(),
});

在我的客户端查询:

var userResults = UserIndex.search(input).fetch();

我第一次获取输入时,索引返回空,第二次正常工作。 当我改变输入时它会这样工作:第一次空,第二次工作正常。 我不知道为什么它表现得那样......任何想法?


Using meteor easy-search I have an Index on my user collection :

UserIndex = new EasySearch.Index({
    collection: Meteor.users,
    fields: ['username', 'realname', 'bio', 'email'],
    engine: new EasySearch.MongoDB(),
});

And a query in my client :

var userResults = UserIndex.search(input).fetch();

The first time I fetch for an input, the index returns empty, the second time it works normally. It works that way when I change inputs: first time empty, second time works ok. I have no clue why it behaves that way... Any idea?


原文:https://stackoverflow.com/questions/38805410
更新时间:2022-05-19 12:05

最满意答案

好的,我同意你的意见,这只是关于着色器

vs_4_0_level_9_1 ps_4_0_level_9_1

使用(D3D11.Device defaultDevice = new D3D11.Device(D3D.DriverType.Hardware,D3D11.DeviceCreationFlags。None))

在这里输入图像描述


ok i agreee with you, it's just about de shader

vs_4_0_level_9_1 ps_4_0_level_9_1 and

using (D3D11.Device defaultDevice = new D3D11.Device(D3D.DriverType.Hardware, D3D11.DeviceCreationFlags.None))

enter image description here

相关问答

更多
  • 如果您真的很擅长编写非托管代码,那么您可能可以在DirectX之上编写更快的图形引擎。 然而,对于爱好者,XNA在2D和3D游戏开发方面拥有丰富的表现。 这是一个很好的第9频道 ,他们在Xbox 360上运行XNA制作的赛车游戏,甚至在全高清时也能运行良好。 XBox Live Arcade游戏中的几个由XNA社区开发。 就C#DirectX而言,正如我所记得的那样,被管理的DirectX被称为不再正式支持,因为XNA基本上取代了它。 我可能是错的,自从我看了它以来已经很久了。 XNA和Managed Di ...
  • 我没有方便的C#SharpDX / MonoGame解决方案,但我在我的C ++ DeviceResources中实现了这个功能,你可以尝试使用它。 您应首先确认撕裂支持是否可用。 获取DXGI 1.5接口(如果可用),并为DXGI_FEATURE_PRESENT_ALLOW_TEARING调用DXGI_FEATURE_PRESENT_ALLOW_TEARING 。 如果它返回false或任何这些步骤失败,则系统/驱动程序不支持FreeSync / G-Sync。 如果支持撕裂,则使用标志DXGI_SWAP ...
  • 就个人而言,我建议使用SlimDX,因为XNA缺乏较新的DirectX版本提供的许多功能。 SlimDX是非托管 DirectX的简单包装。 Personally I'd recommend using SlimDX as XNA is lacking a number of features that the newer DirectX versions provide. SlimDX is a simple wrapper of unmanaged DirectX.
  • WPF应用程序(在PresentationCore中)没有可用的SwapChainBackgroundPanel。 你最接近的是D3DImage类 ,但它并不完全相同。 看到这个讨论 。 我不认为您可以充分利用C#中的Windows 8商店应用程序(SwapChainBackgroundPanel)的DirectX功能。 您将不得不像在您描述的示例中那样使用C ++进行DirectX工作。 你可以在这个例子中组合三个(Xaml,C#,C ++),但我不认为100%C#app是可能的。 There is no ...
  • 首先,如果在OpenGL中渲染WoW而不是Direct X,WOW看起来会有所不同吗? 它在OpenGL 中呈现(好吧,它可以是一个设置)。 不,它在D3D渲染中看起来并不一样。 (注意:DirectX不仅仅是Direct3D。) 如果在OpenGL中渲染,性能会大不相同? 不太可能。 有一些事情OpenGL实现可以更快,但WoW并没有使用它们中的任何一个。 是否创建模型,然后将模型导出为可读的OpenGL / DirectX代码 OpenGL和Direct3D都没有模型格式。 即使.x文件在这一点上也被弃 ...
  • 好的,我同意你的意见,这只是关于着色器 vs_4_0_level_9_1 ps_4_0_level_9_1和 使用(D3D11.Device defaultDevice = new D3D11.Device(D3D.DriverType.Hardware,D3D11.DeviceCreationFlags。None)) 在这里输入图像描述 ok i agreee with you, it's just about de shader vs_4_0_level_9_1 ps_4_0_level_9_1 and ...
  • XNA(基于DirectX)和DirectX都需要安装DirectX运行时库才能运行。 是的,微软更喜欢XNA在C#上进行游戏开发,但是有很多很好的第三方替代品,比如Tao和SlimDX。 如果你只是想要音频,Tao特别对OpenAL有很好的包装: http://www.taoframework.com/ Both XNA (which is based on DirectX) and DirectX require the DirectX run time libraries to be installe ...
  • 您不需要C ++在C#项目中使用3D。 只需谷歌'直接在c#教程'。 DirectX也不是3D的唯一选择。 您可能想要查看OpenGL。 确保您通过一些教程来了解3D内容。 I ended up using the "Windows Runtime Component (Universal Windows)" template. I don't know if it's the best choice, but it works.
  • DirectX文章中的信息- 在Windows应用商店应用中使用XAML与DirectX和C ++都适用于将Direct3D 11或Direct3D 12与XAML混合使用。 目前尚不清楚为什么要用DirectX 12编写关卡编辑器。一般来说,DirectX 11是一个更易于使用的API。 除非你已经达到了DirectX 11的CPU端性能限制,否则对于关卡编辑器而言,它可能比它的价值更多。 The information in the article DirectX - Using XAML with D ...
  • 我猜“WUP”你的意思是通用Windows平台(UWP)。 Windows 3,Windows Vista SP2,Windows 8.x和Windows 10上的Win32经典桌面应用程序支持Direct3D 11.Windows 10上的Win32经典桌面应用程序支持Direct3D 12.UWP和Xbox One也支持Direct3D 12。 要了解DirectX的现代故事,您应该看到: MSDN , DirectX SDK(2015版)在哪里? ,以及Direct3D 11入门 ,以及DirectX ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。