approach0 / search-engine

A math-aware search engine.
http://approach0.xyz
MIT License
346 stars 50 forks source link

Parentheses #19

Open bsfsfn opened 7 years ago

bsfsfn commented 7 years ago

The search engine can't associate e.g. this: \arcsin{\frac{a}{b}} with this: \arcsin{\left(\frac{a}{b}\right)}

w32zhong commented 7 years ago

@j-dec You are right, but completely ignoring parentheses will result in no difference between c(x) and cx, the former is a function but the latter is multiplication. I have to admit this is an issue approach0 has to solve in the future. If time permits, I plan to add query expansion to (partially) address this issue, for example, to expand query c(x) to query expression cx OR c(x). The other way around is similar, the difference is doing document expression expansion at indexing stage. The draw back of this method is, if there are too many parentheses in a math expression, the time complexity to enumerate all possibilities is huge.