I've got a small question on which i unfortunately couldn't find the answer for on google.
I am using laravel and I am currently trying to retrieve a column in my Blade View like so:
$post->id (this returns the post id)
but if the starting string has a number im lost
$post->30posts
Any idea on how to escape this number in blade?
Thanks in advance,
Regards
Desory
You can use like this way:
$post->{'30posts'}
Related
first of all I am not familiar with javascript but I saw the easy way azure search generator offers a portal with search features and I used it to make a search portal for more than 100K files. Everything is fine except that I'm facing the same issue of the limit of 5 facets mentionned in this old post (Facet count in Azure cognitive search (Automagic)). Using search explorer I can see the request url needed (example : facet=category,count:10 / https://xxxxxsearch.search.windows.net/indexes/azureblob-index/docs?api-version=2020-06-30-Preview&search=*&facet=category%2Ccount%3A10) but can't figure out where to put this in search app hmtl page or how I can parse it to automagic to consider this.
thank you Gaurav for your feedback. no, that part is clear for me. Please let me show an example of what I want to achieve.I generated a search a portal using AzSearchGenerator and for this sample I have 7 files with the same metadata key but with 7 differents values (blob-content-files). I am seeking a way to override the limit of 5 checkboxfacets in the search portal generated (check here : portal-search-generated). Is there a way to change this by including the request url with count parameter higher than 5 checkboxes (storage-explorer-request ) to update the automagic instance in the html code (automagic-intialization-html).
Could you please advice me how I can complete this.
If I understand correctly, you're looking for a way to specify facet parameter in Search Explorer in Azure Portal.
Simply add &facet=category,count:10 in the Query string field and that should do the trick. For example, see the screenshot below.
I finally found which parameter to update. In the AzSearch.bundle.js referenced in in the html page (see printscreen parameter to change), the default value is at line 44 on the checkboxfacet part. I just updated it with the right value, in my case I put count:30 and now I have more than 5 items in the checkboxes.
Result after change
I am trying to search BrightPearl orders through API using the following URL pattern using REST API
order-service/order-search?createdOn/2018-09-12T00:00:00/2018-09-12T23:59:59
This is how their documentation says. But it is not returning orders as expected within the date range instead, it returns all the orders available in the store regardless of the date range we applied.
Can anyone say the correct URL pattern which fulfills my requirement?
Please note that it is not a coding issue but URL pattern issue. If someone came across this problem earlier and fixed could help
http://api-docs.brightpearl.com/order/order/search.html
https://help.brightpearl.com/hc/en-us/articles/212644983-Resource-search?flash_digest=187c68ecc5151c9d3a390e14fd8e4f114db11bcd#autolink-heading-2
Thanks in advance
I got an answer from the bright pearl support which solved my issue. Let me share it here
It looks like you are using the wrong string.
If you are using GET method the URL endpoint should look like this
/order/*/goods-note/goods-out/20
and if you are using PUT method the endpoint should look like this
/warehouse-service/goods-note/goods-out/20
This guide might help with the syntax: http://api-docs.brightpearl.com/warehouse/goods-out-note/get.html
I've created an instance of Azure Search and I'm trying to make use of the suggesters functionality but struggling to find any useful information on how to get started (poor and out of date documentation from Microsoft).
I would like to use a suggestion on the name field below.
The issue is that fields require unique names and I'm unable to edit existing fields. I'm a little unsure of how the suggester tab differs from basic.
Does anyone have any advice on how best to add suggesters to my index? I am all for deleting the index and starting again if I've missed something critical.
I'm really sorry you're disappointed by the documentation. We take it very seriously and will make sure to address your feedback. Feel free to make suggestions.
On the screen you provided, you should specify a name for the suggester. Once you do that, checkboxes will show up next to your field names. Using the check boxes you will enable the Suggestions API on selected fields.
Use the name of the suggester as a value for the suggesterName parameter when using the Suggestions API : https://msdn.microsoft.com/en-us/library/azure/dn798936.aspx
Please find more details in this article about suggestions in Azure Search. It describes a sample application with code attached.
Hope that helps.
I am new to WayFinder but I have been working with it a bit and it has worked great for me, However I need something a little more dynamic that I'm not sure how to do.
I have a set of 5 pages in my website and each page has another side menu, but each menu for all five resources will be slightly different
I need wayfinder to detect what the current ID is and then display the appropriate menu
I've tried a couple things but nothign i can get to work:
[[!If? &subject=[[*28]] &then=[[Wayfinder? &startId=27&excludeDocs=28,29,30,31,32,33,89]]]]
So I need to say if the ID is = to 28 display this menu if the ID is = to 29 display this one and so on.
I've also tried &idIs=28 and a couple other variations but couldn't really find anything to help me out on this Does anyone else have any ideas how to make this work? Thank you.
With the solution typeset suggest, wayfinder will be called each time thereby causing uneeded loading time to your site. This will be faster because wayfinder only will be called when id = 28.
[[[[*id:is=`28`:then=`Wayfinder? &startId=27 &excludeDocs=28,29,30,31,32,33,89`:else=``]]]]
Read more on it here: http://modx.com/blog/2012/09/14/tags-as-the-result-or-how-conditionals-are-like-mosquitoes/
You can use output filters for conditional calls. Documentation for them is here
You code would looks something like this:
[[*id:is=`28`:then=`[[Wayfinder? &startId=27&excludeDocs=28,29,30,31,32,33,89]]`:else=``]]
If the menu needs to start from the current ID then you'd use
&startId=`[[*id]]`
If you want it to show all the resources in the current folder, you can use UltimateParent, so
&startId=`[[UltimateParent]]`
Hope this helps!
This should work. The subject is just the parameter you are comparing it against so it shouldn't contain the value.
[[!If?
&subject=`[[*id]]`
&operator=`EQ`
&operand=`28`
&then=`[[Wayfinder? &startId=`27` &excludeDocs=`28,29,30,31,32,33,89`]]`
]]
I am developing an App for Windows 8 for kitchen recipes. I have a checkbox with some ingredients. After selecting the ingredients the user presses a Button. The goal is to present a recipe with those ingredients included. My idea is to put all the values of the checkboxes on one string and Search it via Google and access one of the link given in the results. Is that possible ? iF SO, How can I do it ?
Thanks in Advance
You schould use the Custom Search API
The documentation can be found here:
https://developers.google.com/custom-search/v1/overview
Simply do some REST Magic
Helpful for that is the NuGet Package "RestSharp"
hope that helps
I don't fully understand your question but I hope this helps:
https://www.google.nl/search?q=TEXT%20HERE
This will google TEXT HERE
https://www.google.nl/search?q=monkey
This will google monkey