Modify haystack query syntax? -


Is it possible to modify or expand how a heap of grass understands a query?

For example, to get a SA-style search, consider integrating a grass heap with an OSQA-based site - a search where the regular keyword question / answer / comment text, But are searched where the "syntax" like "[tag]" should be limited to the tag field of the question. At some point we can say "Users: Infinitecode" and "Score: 0" like Would like to add other stuff, but for now These keywords and tags are necessary.

Unfortunately, it is not as easy as regexing by tagging it out of the query string and using it to filter on the tag field, because we use and < / Code>, or want all the complexities, code> no , and the arbitrary group to apply.

Is it possible with a heap of grass? Better yet, has anyone done it before?

It looks like how Haystack AutoCwire works, It was preprinting the search query to remove the tag and other custom syntax that was ending, run the auto-query with the remainder, and then apply custom syntax as an additional filter on auto signal results.

To do this, however, we had to make our needs easier or we had to abandon the requirement, so all the rules are only endless - many things simple (for example, the group is now unnecessary)

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -