Page MenuHomePhabricator

The language stanza in a code block shouldn't be indexed.
Closed, WontfixPublic

Description

I use the language stanza in code blocks (eg bash) and I've noticed that if I search for bash the results will include "documents" that contain lang=bash.

For example this task, once it's been created, will be return if I search for the r u b y (without the spaces!)

def sum(array)
  array.inject(:+)
end

I'm using mysql indexing. I'm using the latest stable branch with versions:

arcanistrARC822bc53ca306e06314560d8a76f68771d732e8e0
libphutilrPHU76983f49b179e575187c7dc5098cd1fbfac300c7
phabricatorrP216f6be11ece53cb1daafc8fff636dbdb0d7ef3d
mysql5.5.52
php5.6.24

And yes, I did re-index after upgrading to the latest version!

Event Timeline

epriestley claimed this task.
epriestley added a subscriber: epriestley.

The document contains "bash". This behavior seems correct to me.

Hrrm, it looks like my reply to your email bounced. Short answer is that we don't offer anything special for academic or open source right now. We'd like to in the future, but are focusing on building our core business first.

The document contains "bash". This behavior seems correct to me.

The document doesn't contain the word bash; the metadata contains the word bash. Indexing the metadata is like indexing the elements in an html document, if I search for "body" I don't want to see every single document.

Hrrm, it looks like my reply to your email bounced. Short answer is that we don't offer anything special for academic or open source right now. We'd like to in the future, but are focusing on building our core business first.

That's odd. I do use greylisting but that shouldn't effect anything and I get the automatic emails from noreply@phabricator.com. Anyway thanks for getting back to me and it makes sense that you are focusing on your core business.