I can't find a way to search for entities where the name contains an ampersand. I have tried encoding the ampersand as & but it's not working. How can I get this to work?
Related
my query is, to pull data from a url. below is the query i am using;
=ArrayFormula(split(IMPORTDATA("https://profile.<"site_name">.com/api/get_weekly_readings?token="),":"))
It "does" work. but only for the first header,
["readings:6048"] arrays into ["readings | 6048]
but the remaining results to not array. I did notice the the first result listed above, is the only header with quotes ("")
Is this the cause? I hope I provided enough information, and used the correct terminology, I am more familiar with excel, and not much at that. Thanks
I am trying to search for a contact with a phone number of the following format:
(XXX) XXX-XXXX
I tried the following query and get no results:
/v1.0/me/contacts?$top=10&$search="(XXX) XXX-XXXX"
I also tried it with URL encoded parenthesis and also get no results:
/v1.0/me/contacts?$top=10&$search="%28XXX%29 XXX-XXXX"
The only thing that worked for me is:
/v1.0/me/contacts?$top=10&$search="*XXX*XXX*XXXX"
However, with the last one I'm concerned that it could return bad results in some cases where there might be some other numbers in the wildcard positions.
Is there a proper way to do this search?
Have you considered using filter query instead of search, that way you might be able to scope the search just to the phone field.
I have a field url in schema.xml. I need to separate my search results based on this field.
For example
in one search I want results of www.example.com/part1/ actually all results that have this prefix.
for another search I want results from www.example.com, but without all documents containing /part1/ in their url.
How can I achieve this? fq doesn't accept special characters and I don't want to split content with NGramFilterFactory, so that this behaviour should be only at search-time.
The PathHierarchyTokenizerFactory should do what you need, I believe. It splits a path-type string into multiple tokens, building up from the root forwards. See https://cwiki.apache.org/confluence/display/solr/Tokenizers#Tokenizers-PathHierarchyTokenizer for more details.
You can then do a query such as q=path:www.example.com -path:*/part1, assuming that you are using the Path Hierarchy Tokenizer for both index and query analysis on that field.
I am of the opinion that giving multiple hyperlink to a single string is not possible in MS word document. I don't have any knowledge of C# but I think after reading How insert multiple hyperlinks to one comment in MS WORD using C#? I just want to clarify weather multiple hyperlink to a single comment is possible or not.
For example I have a "string"
I want to give different hyperlinks like this
example.com/s
example.com/t
example.com/r
example.com/i
example.com/n
example.com/g
So that I get change to select where I want to go from that string.
In Word, a hyperlink is not a string, it's a field code. Field codes are special objects. It is, therefore, not possible to pass multiple hyperlink objects as part of a string. You can't even pass one hyperlink object as part of a string...
You can pass multiple hyperlink strings as a delimited string, then "split" the string into an array, loop the array to create multiple hyperlink objects.
If you want to open a hyperlink or hyperlinks from code, there is a FollowHyperlink method, as I recall (I'm on a mobile device at the moment, so can't double-check). You can pass a string to that.
I am using Locate with multiple fields and sometimes I am getting an "Incorrect number of search fields" error and have tracked it down to the data.
tbl.Locate('LName;FName;Stuff',
VarArrayOf([LName+','+FName','+Stuff]),[loCaseInsensitive]);
Sometimes it worked and sometimes it did not and I traced it down to a Comma in the Stuff if it included a Comma in the text.
Stuff = "My dog is gray" would work.
Stuff = "I am at work, but not happy" would not. That extra Comma made it look like four data fields.
Do I have to Parse every string of incoming data for Commas and if any found replace them with what for the Locate to work? The included Comma version will have been stored without Parsing or modifying as I have no idea what they may have entered. "I am at work, but not happy" is a valid input by the user.
Thanks.
Do not concatenate all the search values into a single string. Instead, place them as distinct items in the array, just like the example in the documentation. That is, don't include the commas in the string:
tbl.Locate('LName;FName;Stuff',
VarArrayOf([LName, FName, Stuff]), [loCaseInsensitive]);