Open GoogleCodeExporter opened 9 years ago
Can a ConcurrentWildcardTree be used for url routing with parameters? like
/home/products/*/tab/*?color=* ?
Original comment by respriet...@gmail.com
on 16 Jan 2015 at 9:19
I'm planning to take a different/better approach than discussed above to
support multiple wildcard queries, when I eventually get time for this.
Basically a potentially better way to support multiple wildcard lookup, is to
set up a tree of InvertedRadixTrees.
Each InvertedRadixTree has a getKeysPrefixing method, which returns keys in the
tree which match an input string with a trailing wildcard.
If you set up a tree of these InvertedRadixTree, then you can accelerate
lookups where your url patterns contain any number of wildcards.
Original comment by ni...@npgall.com
on 19 Jan 2015 at 1:19
This feature would be extremely useful for many use cases, misspell detection being one of them.
+1, any plan to implement this feature?
I have not had time to work on this recently, but I'll try to take a look at this again in the next few weeks.
any progress on wildcard tree?
Not really I'm adraid. I have been distracted with other ideas (In CQEngine mainly) so this is on the back burner for now. Hopefully I will get time to revisit this.
@npgall I'm interested in this feature, as I'm developing a period-of-concept for an IntelliJ-style auto-completion feature in the app my team is working on, which I'm hoping to do without hacking things too much, or resorting to copying code from IntelliJ's codebase or deploying Elasticsearch or Apache Solr.
The way I imagine this auto-completion feature working is, if the app has this list of possible completion suggestions built in:
apple
boat
cat
Then when the customer enters one of the following search queries into the app's search bar, then the respective completion suggestions are shown below the search bar:
My app would translate queries like "pl" into "*p*l*", so as to be compatible with the proposed ConcurrentWildcardTree
.
I've tried ConcurrentRadixTree
, but it doesn't work as expected for queries (2)-(5). I've also tried ConcurrentSuffixTree
's suffix and "contains" capabilities, but again it doesn't work for all queries.
I've even tried Apache Lucene, but it doesn't work because my app is Android-based and Lucene isn't compatible with Android.
Original issue reported on code.google.com by
ni...@npgall.com
on 24 Mar 2013 at 10:19