I have a currency column with the internal name Importo.
On the managed properties page I edited the property RefinableDecimal00 with alias Importo and mapping ows_Importo.
When I try to search using the alias as below:
Importo:49.59
I get zero results
Instead when I try to search using RefinableDecimal00 as below:
RefinableDecimal00:49.59
I get the results correctly
How can I get the results using the alias?
I have this problem only on some site collections and also on the Number columns
Related
I'm trying to implement Azure Search on Kentico 12. Following the article below.
https://docs.kentico.com/k12/configuring-kentico/setting-up-search-on-your-website/using-azure-search/integrating-azure-search-into-pages
However, I have multiple indexes defined on the smart search not just a single index code name that I can hard code and also cannot aford to hard code index fields. Is there any tutorial out there that I can follow?
It sounds as if you're referring to building an Azure Search web part, is this correct. If so, make a property in your web part which allows you to select the code name from a list in the database. Secondly, regarding field names, you should be using generic field names like DocumentName, NodeAliaspath, etc. Although if you have very specific search results that need to be displayed, simply put in a switch statement to get the field names based on a class name.
I have configured azure autocomplete API with all parameters. It gives results for normal keywords but when I tried with misspell keyword then it doesn't provide me expected results. Also, I have added UseFuzzyMatching=true while configuration.
eg. machine -> gives the expected results. If we try with magine then it provides 0 results from autocomplete API.
Please let me know if I'm missing any configurations to make Fuzzy workable.
I have data in my index that contains product description and comment fields 'Boormachine' or 'machine', also it provide me result in search API for this.
I have configured suggester while creation of index with the following source fields:
Comment, CommentSmall, Description,
ItemBrandDescription, Itemcode,
ItemGroupDescription,ItemSupplierCode,
SupplierCode
We have configured autocomplete API with this:
as I need to find for keyword suggestions not in group and brand name so excluded these two fields from search fields in configuration.
We can see fuzzy related configuration in autocomplete with UseFuzzyMatching flag. Please let me know if I am missing some configuration to work fuzzy in azure search autocomplete API.
For References click this Link
The behavior Azure Search is providing is correct.
Magine is a different term than machine, and probably it does not exist in your index, this is why you're getting 0 results. To enable Fuzzy Search you actually need to append the ~ symbol to the term, so your search will look like:
"search=magine~"
https://learn.microsoft.com/en-us/azure/search/query-lucene-syntax#bkmk_fuzzy
Hi ,
I want to restrict search of Sharepoint results to just one site collection.
For this i created a new result source and tried the following queries
{?{searchTerms} SPSiteURL={SiteCollection.URL}}
{?{searchTerms} -contentClass:STS_Site Path={SiteCollection.URL}*}
Tried the Path in text string too but doesn't work .
In fact if i use Path it doesn't bring any results back.
I understand it doesn't need full crawl . is this correct ? where am i going wrong
Please try the below query to get search results ,Related to what we are typing on searchbox.
path:URL {SearchBoxQuery}*
OR
SPSiteURL:URL {SearchBoxQuery}*
Eg:
path:https://test.com/sites/test {SearchBoxQuery}*
SPSiteURL:https://test.com/sites/test {SearchBoxQuery}*
If you need to filter by a particular text.
path:URL welcome*
OR
SPSiteURL:URL test*
Eg:
path:https://test.com/sites/test welcome*
SPSiteURL:https://test.com/sites/test test*
For multiple site collections
path:https://test.com/sites/test1 OR path:https://test.com/sites/test2 {SearchBoxQuery}*
OR
path:https://test.com/sites/test1 OR path:https://test.com/sites/test2 welcome*
I am doing a query with solr where I need to find documents without a given field say 'name' and I am trying following part;
$q=+status:active -name:["" TO *]'
But it sends both all the documents with and without that field.
Can anyone help me figure this out?
the field name is a normal String type and is indexed.
I am using nodejs. Can anyone help me with this
According to docs:
-field:[* TO *] finds all documents without a value for field
Update
I tried it but it sends even the ones with the field non empty
Then my wild quess is that you are using search query q instead of using filter query fq. Since you are using multiple statements in query I assume that q does some extra magic to get the most relevant documents for you, which can lead to returning some non-wanted results.
If you want to get the strict set of results you should use filter query fq instead, see docs.
What I want to achieve : Take a keyword array as input and query Sharepoint List to return all rows which contain the keywords in the list.
I have built a simple CAML query to query my list with one keyword (pdf) .
<Query><Where><Contains><FieldRef Name='Keyword'/><Value Type='Text'>pdf</Value></Contains></Where></Query>
This works fine.
But, when I try to use Or clause in the CAML query(see below), I get the following error
"One or more field types are not installed properly. Go to the list settings page to delete these fields."
<Query><Where><Or><Contains><FieldRef Name='Keyword'/><Value Type='Text'>pdf</Value></Contains></Or></Where></Query>
I googled for the syntax and everything looks good. Please let me know what is missing.
Thanks in advance.
In CAML Query if you want to use OR you must and should have 2 conditions.
The field reference name must be the internal name. You can find this by going to the colmn page in list/library settings and the name is the end of the URL. Spaces and underscores in the name must be handled differently.