|How to check file existence by its base name (without extension)?|
You need to use the path/filepath package.
The functions to check are: Glob(), Match() and
Walk() — pick whatever suits your taste
|Prolog graph search|
as you suppose, your query is the problem: try
X = [math101, math102, math210, phys201] ;
X = [math101, math102, phys102, phys201] ;
or, with some more instantiated path
X = [math102, math210, phys201] ;
X = [math102, phys102, phys201] ;
|Spotify search API - how much do I need to clean the search query?|
You might be able to make use of the NOT operator
to mitigate anything that will potentially give
you a bad result.
However, you'd have to check the search string to
add the NOT operator in the correct place anyway,
so you might as well take out anything that isn't
a "normal" part of a track.
could use a regex for that (JS):
// evil search string
var search = "Katy Perry - This How We Do (Offi
|Making ID as default search in Solr|
No, it will not have any real impact - as long as
the field is actually defined as a StrField.
You should not have a unique id field that is
defined as a TextField and where there are several
filters and tokenizers applied.
Whether it's the default search field or not does
not matter performance wise, just what field
q=what is will be matched against.