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
最满意答案
好的,我同意你的意见,这只是关于着色器
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))
相关问答
更多-
如果您真的很擅长编写非托管代码,那么您可能可以在DirectX之上编写更快的图形引擎。 然而,对于爱好者,XNA在2D和3D游戏开发方面拥有丰富的表现。 这是一个很好的第9频道 ,他们在Xbox 360上运行XNA制作的赛车游戏,甚至在全高清时也能运行良好。 XBox Live Arcade游戏中的几个由XNA社区开发。 就C#DirectX而言,正如我所记得的那样,被管理的DirectX被称为不再正式支持,因为XNA基本上取代了它。 我可能是错的,自从我看了它以来已经很久了。 XNA和Managed Di ...
-
如何在UWP中禁用vsync?(How can I disable vsync in UWP?)[2023-12-31]
我没有方便的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.
-
Windows 8 DirectX SwapChainBackgroundPanel问题(Windows 8 DirectX SwapChainBackgroundPanel Questions)[2022-02-15]
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文件在这一点上也被弃 ...
-
uwp directx和c#开发(uwp directx and c# development)[2022-05-28]
好的,我同意你的意见,这只是关于着色器 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 ... -
使用C#,DirectX和XNA播放音频和最终用户的要求(Playing Audio, and Requirements for End-User with C#, DirectX, and XNA)[2022-12-03]
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 ++ DirectX DLL的项目模板是什么?(What Project Template do I choose to make a C++ DirectX DLL?)[2022-02-27]
您不需要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 ...